Fix #126

This pull request fixes mainly #126, and some other things along the way.

Tests added.
Non chunked request has an extra `\r\n'. But I do think this is not the ideal place to add this logic.