More network features

moved serialization, added compression, cleaned up