Refactor and rearrange editor sources

Split out editor_ui_static