Build modals that close cleanly and reopen.
Recent revisions are kept. Restoring one creates a new revision.