Add support for setting a host for gend image urls.

This can be used to serve gend images from a CDN.