added socket.io library
added basic logic for connecting to nodejs server