Context menus can now handle different types and commands, as well as submenus
removed unnecessary newlines
renamed variable to make code more understandable
minor changes
updated coding style and added spec
fixes to spec
Submenus now work with old context menu structure
added separator for submenu
updated docs
docs markdown
Merge pull request #2134 from erikhakansson/AdvancedContextMenu

Advanced context menu