Fix filename handling on windows
Rewrite keymap restoring to use :mkexrc (fixes #63)
Fix window destruction