Bug 1014501 - [WebComponents] style import polyfill

Abstracts workarounds for platform bug 992249 and platform bug 1003294 into a small shared js utility. 

https://bugzilla.mozilla.org/show_bug.cgi?id=1014501