Add payload code

Payload struct and marshalling + tests