Generalise npm postinstall patching.
Patch react to avoid IE8 error
See https://github.com/facebook/react/pulls/2311
Add shim modules during npm postinstall
No need for scriptjs global anymore
Extract getRenderedProps for easier testing.