Added support do deflate gzip compressed responses 

Includes the change and a test.