File selection dialog update, part 2

This updates the main app to use the new dialog, and removes the
old code.