Merge pull request #42 from Gordin/websocket

Fix broken sorting of Authentication Mechanisms and fix for Error Handling in WebSockets
clear handlers before setting status to disconnected