Copy over internal React functions to /utils folder, update references.

Removed all references to react/lib files, and move necessary functions
into their own files in a utils directory including: classSet,
cloneWithProps, createChainedFunction, EventListener, merge, and
TransitionEvents. If/when these become available through React we can
remove these files.