Separate Document and Editor factories.
Get rid of virtual id's.
Minor refactor.