Minor changes

- New HeaderUtil.class in /lib/util
- Bugfix in SessionFactory
- Set page title function in TemplateEngine.class.php