Our forum stripped the HTML that you have included, but I think I get your idea. I think that maybe this would be better done by an external script that you run whenever you wish to deploy your website. Here is a grunt plugin that does this.
But yeah, that's exactly what I would like. It would be cool if you guys could have an Export menu with CDN settings, then run this Grunt script against the files. :)
Still not a big deal, I only have about 8 pages tops.