Finish first draft of the http parser.

Some tests to be added