Merge pull request #24 from Gordin/websocket

Change state after unexpectedly killed WebSockets. Fixes a bug discussed in #23
Fixed legacy non-sasl auth
Merge pull request #31 from dym/fix_non-sasl_auth

Fixed legacy non-sasl auth
better handling of WebSocket Stream Errors
gave other AUTH Methods higher priority than PLAIN