I’ve added a new config parameter, ‘s3.bucketInHostname’. This indicates...

... if the urls used to access S3 are constructed by pre-pending the bucket name to the aws hostname, or whether the bucket name forms part of the url path. This addresses issue #36 and allows for using https with bucket names that contain dot characters.

The defaults are set up to maintain the previous default behaviour, so the change should be unnoticeable unless you need it.

I have run all the tests successfully with s3.http=false and s3.bucketInHostname=true, and with s3.http=true and s3.bucketInHostname=false.