Add StaticPages controller
Finish static pages, including refactoring