add naive opt-in resetting, naive history tracking

last few commits and the rest for the near future are from pair
programming experiments. these started in "Start of top-down stuff" and
are ongoing