React v0.12 compat

Clears out all the warnings and upgrades to latest syntax.