fixes and improvements (websocket)

the "git ignore" commit should be ignored
various things in the main commit, and it has not been tested for socketio