Unittests added for gzip and deflate compressed streams, mis-matched

compression, multiple stacked encodings.

Fix bug when we have a compressed response body and we try and detect
response completion.