[WIP]: Extract main menu generation into NavbarGenerator.

* Introduce a class for menu generation. Menu sections, menu items.
* Simplify navbar view.
* Dedine navbar in a declarative way.
* Remove redundant constans.