Better undo file structure.

Instead of storing undo files in the working directory, store them in
a global cache directory instead.
Automatically read and write files
Hide certain files from the file browser