Gzip support

Support gzipping files before pushing to S3 and to return gzipped files from S3.

@skavish plz review.