Properly handle gzip in the benchmark code.

Encode correctly using GzipFile + StringIO and add the relevant headers.
Add a socket -> http relay server

Should allow us to work around latency issues sending individual requests
from prod.