Fixed #527
Added prefs to force to use of the API for Alarms and KWLs