Update dependencies and React code for 0.12.2