use gob instead of manual marshalling

this removes the need for messaging tests
update client to use gob