Strip the editor buffer (model) out of the editor into a plugin.

Remains to separate the drawing routine (view) and
the controller.