Simple and extensible serialization module for server and client