Test that React loads properly in a web worker

This should catch top-level uses of `window` and `document`, while lint rules catch `global`.
Merge pull request #374 from spicyj/workers

Test that React loads properly in a web worker.

Most of this code is open source-only, so I think it's safe to merge without figuring out how to translate it upstream first.