refactored websocket.php + datahandler.js

otherwise added readme.txt (some thoughts)