Set MIME type for files uploaded to S3

Updates #82 with a test.