Add session ID as parameter to all server namespace functions, and make the SynchronousQueue be a Map keyed by session ID.  In the client, move the initialization of the comet connections later, after the session ID is known.  Add magic variables to python and R plugins that are set with the session ID, and add this new parameter to the REST calls.