jersey: update gzip encoder to work with Jersey 2.x

Fix for issue #780 

Update ConfiguredGZipEncoder to work with Jersey 2.x which no longer allows setting headers via WriterInterceptor