Sorry for the slow reply. There is currently no built in state preserving system, although a few people have built one on the customization layer.
I plan to make this a supported feature someday, but right now I don't have enough time to find a state preserving system from someone else and recommend one sorry :(