fixes #6 - make $session available to views