Websockets branch created.
Authentication improvement, some bugs still remain.