[HEAD MERGE] Start of mofos cleanup

Signed-off-by: David Goulet <dgoulet@efficios.com>
[MERGE] Add stream.c/.h

Signed-off-by: David Goulet <dgoulet@efficios.com>