removing docs, fixing commonjs/amd/global factory

- needed to use something besides typeof exports === 'object', because running uglify with wrap = true uses an exports variable that becomes an object.
- when React is included in global, it needs to be accessed via window.React, not window.react
- removing docs (as I think those should only be checked into gh-pages)