fixed #150: Amazon S3 custom domain support, Moved URL methods to URLHelpers class