Add facility to actually write config to file

Including a Swing file chooser dialogue