Added support for setting custom headers for files uploaded to s3.