HTTP request line parsing, fixes

- Implemented HTTP version syntax check and number extraction.
- Added some checks against spurious carriage returns.

Still missing: URI syntax validation and parsing.