added asset_host support

I cherry-picked the commit that @dfguo made to support redirects to assets on CDN as part of #5 and the tests are passing.