support for storing & retrieving custom metadata

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