added a catch method to Promise as bluebird
upgraded to socket.io 1.x
fixes related to socket.io upgrade