Added basic menu system allowing modules to add items to various menu elements
code cleanup