Adding various new things to ParserProtocol.

The state now has a connectionMade method which is called immediately (but
makes testing states easier), and is passed the ParserProtocol.
ParserProtocol.setNextRule was added, which lets the state specify what the
next rule should be.
Adding a new test for ParserProtocol.
Updating the netstring tests.