Updated example test.
Added session support and session functions for Twig.