Add support for gzip encoding of responses

This requires removal of setting the Content-Length (causing Go to
return Transfer-Encoding: Chunked).

Returns gzip-encoded responses for clients that specify that they accept it.