Support for storing and retrieving custom metadata for S3 objects

This commit adds support and a test for storing and retrieving
custom metadata for S3 objects, as documented at:

    http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPUT.html