Update to new ServiceWorker API.

NOTE: This works only on a Firefox build with custom patches. See Bug 903441.
Alarm is implicitly allowed right now