use latest ShadowDOM polyfill API where required, remove support for shim