Refactor selection controller
Mindmap: move classes to flexdiagram
Mindmap: tools