support transfer encoding

- inform server it may use deflate/gzip to transfer encode message
- transfer encodings are listed in the order they were applied
Merge pull request #320 from burns/transfer_encoding

Add support for Transfer-Encoding