Created a little serialization framework for de/serialization of the application state