Handle gzip requests/responses.

This somewhat naive implementation does the job.