added socket.io and changed the way messages are sent
Merge pull request #3 from fonsleenaars/master

added socket.io and changed the way messages are sent