recovery: introduce Ctx class to store config
recovery: pretty print for Time
recovery: reworked stats

Still new implementation is needed (probably in separate class) to hide
this ugliness.