Cleaned up some session code. Was useless after refactoring.
Fixed serious xss bug in the literature_view_full function
Fixed xss vector in literature_view_list function. See also last commit.