reorganized code so there are separate processos for each kind of document
making github interface work

begin rewriting the React components