feat(router): configurable gzip settings

Fixes #884