Hook up the config dialog

- Moved the dialog into its own file
- Load config at the appropriate time after closing the dialog
- Made dialog fields save on blur, removed cancel button and such since
  you can't really cancel anything