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

I would probably do something like:

```js
return (action = Promise.all([cacheSyncFrequency(value), action]).then(scheduleSync));
```