Allow support for S3 base_url config option.

This changes the `getObjectUrl` to use the `PathStyle` parameter in order to allow cnames to be used when generating the object url.