Major API change. Added socket.io example usage.
Fixup testRig to work with new API.