Make hostname and SSL handling consistent with updated AmazonS3 module.

Signed-off-by: Robin H. Johnson <rjohnson@sitka.bclibraries.ca>