Refactor remote prefs, add warning when remote prefs that changed are about to be overwritten.