S3 access cleanup

A couple of patches for AWS's storage. Mainly, S3 bucket names with dots don't work really well with SSL because the certificates only cover of DNS level.

It's still a bit early to merge. I had essentially the same on an older branch and just rebased today. I'm going to test it a bit more but thought I might already start the conversation.