Updated twig session extension to use new session class.