Working reversion support.

Get reversion support working properly, so history is stored for
everything no matter where it is edited.