Preliminary backend work: global variables and non-functional session management