Move post-connect state management down into the connection / transport level, rather than in the client/server level.
Merge latest from HG.
Merge https://github.com/GuyPaddock/JStratum