Decouple docs from ids, and make it so changing currentDocId automatically loads a new snapshot if appropriate.