An attempt to generilize the code in SettingsDialog.

Hm looks like most of the code there already handles UI only.

One step further could be to make AccountSettings be aware of ownCloudGui
object and connect its signals to ownCloudGui slots automatically, but not sure
if there is benefit in that.