Implement proper handling of chunked encoding of req.body.

Fixes	#1524