add in autodetection of mimetype

because if we do not declare the mimetype when we putObject thru S3,
images will be downloaded instead of displayed directly in the
webbrowser.