Add support for gzip encoding

Addresses #13 

ping @thoop