Added support for gzip-encoded HTTP responses

Fixes #238
Added support for gzip-encoded HTTP request bodies

For couchbase/couchbase-lite-ios#240