Fix #126

This pull request fixes mainly #126, and some other things along the way.

Tests added.
Looks like too many ways to do the same thing. Why not to explicitly keep 8196 as the default value (also, why 8196, not 8192?) while use None value to turn chunked response off?