added nodeunit to package.json and updated unit tests
added socket.io dependency