mu-mmint: Create api to detect mid diagrams in workspace

 * Add api to be consumed by MAVO outline for refinements.
 * Initial refactoring of MAVO context menu.