Move context handling into the Context module.

Most of the parser is now a simple naive parser, which just calls through to the context handler.

I have a hunch this might simplify msgpack handling later on.