editor: factor out interpolation-pen selection
editor: simplify painting
editor: use QRect for selection
editor: move document-implementation into source file
editor: store everything needed in undo-commands
editor: use Qt's undo framework

Instead of hand-rolling our own systen, let's use Qt's built-in
one to reduce the amount of code.
editor: selection-helper