Simplified logic for when no file exists

Previously when no underlying file existed, the text in the view would
be cleared so `close_by_index` wouldn’t prompt for a save. Now I simple
set the view as scratch.
Added settings

Adding options to save when a file exists for the view that’s closing
and saving orphaned views
Refactored command

The command now consumes the settings file and optional saving orphaned
views. The logic is most likely more complicated than it needs to be
but it’s a first pass.