checkpoint, shutdown framework

https://app.asana.com/0/12598631076864/12598759630166
1) yet to do the actual RAM to disk serialisation of data srtuctures.
2) implmentation details:
: checkpointing is done when x trasnxns have entered and atleast x/2
have committed.
x may be varied to a fine tuned ,optimal value.