Export an upgrade function for doing a CustomElements.upgradeAll as a promise.