expands modified flag to entity and aspect nodes. Changes to serializer
to take in consideration modified flags for entity and aspect. Cleans
serializer code, adds more junit tests to perform network tests, and
further tests on existing serialization of trees.