added in a socket.io js client, added a proper disconnect event, and setting up for session variables
made sessionIds persistent across sessions