issue #361. Draft code for assignment finalization.

Instead of querying the DOM, use component refs: http://facebook.github.io/react/docs/more-about-refs.html