added session reference functionality
eliom would now set the user id as a session reference
added a authentication handler wrapper (not tested)