Merge pull request #83 from inhies/f.gzip

Add support for gzip compression if the client requests it
Improve content type detection