Made loading socket.io depend on config.