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

let's also change it to `if (date < Date.now())`.. weird to have a constructor inside a conditional...