Drop unnecessary dependencies.
Create "doc" package for classes related to in-memory document model.
Move old implementations of doc classes out of util and json packages into doc package.
Drop unnecessary and/or experimental methods from these classes.
Refactor Whence interface to use new document abstractions.