PHP library for templates, controllers and sessions