saveUiPreferences() and loadUiPreferences() added.

saveUiPreferences() saves any controls which the user can change
selections in so that these selections persist between sessions when
loadUiPreferences() is called when the app is run again later.