testing and implementing socket.io

WIP