Currently we don't check the dom.push.enabled pref in some cases for some of these interfaces. This patch unifies how all of these interfaces are exposed to Window, Worker, and ServiceWorker.
Refactoring to allow access to PushManager in ServiceWorkerGlobalScope. See comment in PushManager.h for details.