New serialization subsystem, supporting Binary and JSON