Bug 1042939 - Resurrect periodic sync, alarms refactor r=millermedeiros

lol ok fine