Added raw message parser and tests.