Move preferDoc function into Model.
Be better about propagating changes to currentDoc into the Docs list.