replace deprecated calls
accept gzip encoded responses
Merge pull request #6 from metamx/accept-gzip-encoding

Accept gzip encoding