Add binary data serialization infrastructure, stubs and test overhaul

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>