[changed] Update to React 0.12. Fix warnings.

This PR makes react-modal require react 0.12 or latest. Also fixes the warnings and deprecation notices caused by the new API.

The migration plan is the same published by the React team when migrating from older versions to React 0.12.