Provide detect_encoding option for S3

With `detect_encoding: true`, the S3 provider will read each file
with the `file` utility.
If the file is determined to be gzip'd or compress'd, we set
:content_encoding option so that files can be sent compressed.

This addresses https://github.com/travis-ci/travis-ci/issues/2400