Optional gzip on submit.

Fixes #406.