I'm sure that you will figure out that is easier to use a CDN for your website and use external storage "Local" for images stored in your website but that you want to load with another URL.
If you want to just change the theme assets check app/lib/functions.render.php for header and footer functions.
For image URLs you will need to hack app/lib/classes/class.image.phpdisplay url.