Adding GZip support for REST API. Disabled by default.