Track unsaved changes in the config editor.

Pop up a dialog if the user tries to quit/close with unsaved changes.
Unfortunately, this isn't tracking across multiple config managers
or multiple windows, so I'll need to do some more stuff...
Fix a NPE when reverting derived configs.