Making id and revision Strings.

- Introduced a default implementation of Document.