Initial code for submenus and refactor

needs a lot more work, currently completely nonfunctional
Rudimentary working multimenu support
Give submenuitems the correct name
Basic code cleanup, docs and functions
Add a reload config file option
Re-enable working directories
Auto-focus the correct button