Add document selection.

no more updates until the components are split out to a flux'ish
architecture. at this point it's getting unwieldy to  maanage all that
is going on just passing props/linkstate between components.