DEV: Export register service worker logic (PR #14598)

GitHub

It would actually be much better to export this from something in lib than from an initializer. Initializiers can rely on the order they run in (via before/after) but I don’t think they should rely on one existing.