backport parts of #957 needed for #987

- common config for gzip compression filters
backport #987
Merge pull request #989 from metamx/backport-987

Backport #987