Java client/server networking layer based on object serialisation