Flesh out config dialog and setup preferences file.