Allow base hostname to be configurable

Allow configurable base hostname. This can be used to connect to other S3 implementations such as the one found in Eucalyptus.