Updated network code to be more simple. It now uses java's default
serialization and is therefore hopefully more robust.