Add support for setting bucket via subdomain

This is what most s3 clients use. It maps container1.localhost to
localhost/container1. Requires setting config.host to the hostname used
in requests, without the port.