The base for a build in Puzzle Editor.
It cannot be used to create a new file at the moment and it has no undo at all but the basic functionality is there.
Garbage textures are now created to a new texture before being rendered to screen.
This prevents tearing when scaling the windows in software render (and possible other modes).