Improve file loading and saving dialogs.

- Add title to file selection dialogs
- Add file name filters to file selection dialogs
- replace e.printStackTrace() with proper logging