Add streaming operators to processes.

I/O interactions with the processes now looks like idiomatic C++ instead
of idiomatic C.