Relocking on Screen_off, better pref change handling, more prefs, wifi detection