adaptive checkpointing implementation

with each state bundle, save the V_thresh (voltage threshold) value at which
mementos decided to checkpoint the bundle.  save a generation number too, to
help mementos figure out whether successive bundles were saved in the same
lifecycle, in which case it is appropriate to decrease V_thresh to start
checkpointing later.