Add support for gzip compression if the client requests it

This checks the 'Accept-Encoding' header in the HTTP request and if the client accepts gzip then we will send them gzipped responses.