Support for AMD, CommonJS modules and React 0.11.x

I added support for using your library through AMD and CommonJS modules. Also, I made some small code changes to support both React 0.10.x and React 0.11.x

Thank you for considering this pull request

Alejandro