Switch from zlib to gzip.GzipFile for compression.

I'm not sure why these are different, but the former results in
net::ERR_CONTENT_DECODING_FAILED errors in Chrome, whereas the latter
does not.