Make the domain more easily configurable

Should make it possible to easily work with S3-compatible
services that aren't provided by Amazon.
Add docs and tests for new `domain` option.