added persistent state to the file dialog. You can now save data/paths/favorites.