fixes #477 Closes #530
Also adds css shimming for emulated shadow dom and makes the shadowDom strategy global to the application.