Add a version of the XWikiREPLCode code that is supposed to handle sessions

...but it seems not to work