Make Session object a pimple
Add hasauth Twig function