Serialization of events and stream metadata

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Test: Add a stream instance to a writer object

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