editor: start extracting editor commands into their own file.