Framework to save and load Markov chains.