Add shim for making React.js work in PhantomJS

PhantomJS doesn't have a Function#bind method, which is required by
React. This file is copied from React's own test suite, and solves the
problem by adding the required function if it doesn't already exist.

Reference: https://github.com/facebook/react/issues/945