Set Content-Type and Content-Disposition on S3 objects

Also, properly computes the MD5 of attachments.

`rake redmine_s3:files_to_s3` does a better job reporting progress of uploads, and retry uploads up to three times in case of failure.

This is a complete repackaging of my previous pull request in a single commit.