Added StaticPages controller
Added some static pages and unit tests
Added titles, root and refactored some code