Update socket.io to latest.
Add improved logging with optional logFn option.