Reworking the parser to speed it up. Also adding lots of unit tests for the response parsing.