Add a simple echoing message handler to the service worker.