Register ServiceWorker.