Bug 1042939 - Resurrect periodic sync, alarms refactor