Various helper functions

- added function to find the master parent of a child menu item
- added footer menu generator
- added children relation