Update to use CDN socket.io.js and use socket based on env