Support for opening unexisting files
Fix undo history of opened files (fixes #40)