Updated server code for socket.io 1.2, and fixed reload bug on iOS8.