Setting Content-Type on writes

The only way to set the content-type header on a write is with the global setting AWS_HEADERS. When writing the content-type should be guessed from the file name instead.