Fix #126

This pull request fixes mainly #126, and some other things along the way.

Tests added.
Actually, you're trying to forbid pretty valid case. Chunks and compression could be used together to represent two semantic principals: 1) stream chunks, join and decode on server 2) stream chunks and decode on server on fly.