Added license section to README.md
Server refactor

Changed it so the server is event driven and modular.
Moved websocket handling to it own file.