Save documents passed via StatRecord

removed docId from DocumentFile, unused.
Invalidate references as needed to indicate that a documentFile is now
out of date.
TODO - RevisionMistmatchException handling.