Restructured PECanvas. Draft undo/redo.

The undo/redo now works for a single layer. Removed the overlay,
this will be the next to be restructured along with tools pipeline.