Add MD5 correctly

Amazon S3 expects the Content-MD5 header to be Base64 and not hex.
Return MD5 sum as base64 from s3_md5_sum and use.