Add transparent gzip encoding to web-api request and responses

Fixes #749