Refactored Document.

- minor restructuring
- using new seeding facility
- some schema additions
Cleanup.
Fix regressions.
Document has a docId property.