Implementing socket.io and adding examples