Initial document support for in-memory store

Implement and test the operations on initial documents for the
in-memory data store.