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

Actually I think these are both declared on a lower scope in the scope stack so that everything inside of the module can access