[nim] Insantiating a session only after DOM is ready. Testing that global function getSession() works all the time for readability of client code. Session is a monotone class so we need to be clear that after instantiating it, we are just getting the existing session