first step of navigation popover
Now toggling navigation when clicking on logo

Also added a generic menu logic that should be used by other menus in
the future. The logic includes closing the menus when clicking on the
document body.