Changed the responsibility of appending the id of the NetObject to the
serialized message. All implementations of NetObject are responsible for
appending the id