Misc fixes in HTTP parsing

* HTTP headers are case insensitive (see RFC2616 4.2 for details)
* Check errors when parsing status line
* treat LWS around the colon in headers
Merge pull request #1242 from hardening/http_fixes

Misc fixes in HTTP parsing