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

Okay so we could initially set action to `Promise.resolve()` instead of `null` or whatever... sounds good