Implement state saving and loading

Issue #2 new
Riot created an issue

No description provided.