Updated socket.io to version 1.2.0
Updated server code for socket.io 1.2, and fixed reload bug on iOS8.
Bug fix for the Code button on Windows.
Used more reliable mechanism DOMContentLoaded to trigger connect.
Changing to window.addEventListener for improved stability.