Moved the editor controller into a new subdirectory.

This is the first step of a major refactoring of the editor code tree.