WIP: Ws client code

Isn't this late to be doing this?  Shouldn't you change the state before you start the checksums?  I'd put this state/event code at 53.