Upgrade to React 0.12 and centralize state

一石二鳥~