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

indent all the `.then` calls?

```js
return issueSyncAlarm()
  .then(cacheSyncAlarm)
  .then(maybeScheduleSync)
  ...
```