Add renderer of menu

This implementation of the menu logic is as minimal as it can be. It
works in the same way as the module renderer, with everything that wants
something in the menu responsible to update it.