setup session cookies and socket.io to pass along user data via emit