subrel: Refactor diagram libraries

 * Move into core mmint because it's needed by overriding functions
 * Rename accordingly, there's not much specific to the gmf diagrams
anyway, it's more generic ui