How to upload static files to a remote server in Drupal 7 instead of local filesystem?
You should look into the CDN project.
I am think of implementing it myself, but have no practical experience to impart.