Move home page functionality out of PagesController and into HomeController