Machine output

fixed the loop bug (non-kludge version)
this is what fixed the bug.  when the card is saved, drop the selected_revision_id.  (this is basically equivalent to setting it to be the current_revision_id)