Fix crashes, missing error states, and edge-case bugs.
Recent revisions are kept. Restoring one creates a new revision.