Optional gzip on submit.

Fixes #406.
Merge pull request #434 from tamcap/gzip_submit

Compress uploads using gzip (@tamcap)