adds serialize methods

to ChangeManager and EntityManager. this will expand their contents into a
nested dictionary. this output can be serialized, such as a json string.
adds deserialize methods
move tags from EntityManager to Entity