Bug 1057848: Restore remote lookup logic, add 2 flags for hotfixing, always set all prefs (r=gcp)