Initial stab at MutableDocumentRevision

With some tests derived from the spec in Mike's gist