Refactor pendingLoad into pendingHtml, add currentDocId to AppState
Decouple docs from ids, and make it so changing currentDocId automatically loads a new snapshot if appropriate.