Added node.js/socket.io server to record events in real-time so that if a user exits prematurely, their session is still captured