Add Document.metadata

This removes Document.title, the title is now part of the metadata.