Add StaticPages controller with testing and page title detection