Import fixes from ShadowDOM repository

also, keep a copy of the patched shadow dom instead of patching it (it makes the changes to it more convenient).
Now, if we disable the code in background.js that prevents running without Web Platform Experimental Feature, we can see the progress towards #1193.

review: @devoncarew
cc: @ussuri