Enhanced navbar

Navbar now automatically determines the active element, helped by a new
MainController. The old MainController was renamed to HomeController,
the old mainView to homeView.