Start of some untested (de)serialization framework
Move constants to make class more readable