HTTP request line parsing changes

- Simplified implementation of parsing.
- Added some unit-testing for parsing error cases.