compress/gzip: add Writer.Reset

compress/flate is https://codereview.appspot.com/12953048
compress/zlib is https://codereview.appspot.com/13171046

Update Issue 6138

R=golang-dev, iant
CC=golang-dev
https://codereview.appspot.com/13435043