Don't panic on file open. Error messages still need improving.

Previously if you're opening a directory godit would panic. Now it displays an
error in the status bar and opens an empty unnamed file instead. Some other
file open related panics are eliminated too.