Get the whole thing working with React.

Not sure if I'm using React, as it is supposed to be used, but things
seem to work.

Closes #1.