Added initial implementation of server with serialization