Support ServiceWorkers.

Requires ServiceWorker to have desktop notification support.
Minor tweaks
foo
New ServiceWorker API support
Remove some code to prevent confusion