Gzip/Deflate support

add gzip/deflate decompression when content-encoding says it is there
refactor handling of the "end" event in 'normal' and 'proxy' in the ConnectionManager

https://gist.github.com/wrobbins/9442815