Make it compatible to go-socket.io v1 and socket.io.js v1.

With these changes *gochatapp* becomes compatible to go-socket.io 1.x and socket.io.js 1.1.0.