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

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