Fix type and add dumping handler to Handlers class
Fix up some web socket tests
Add missing state transitions