Genie:  Make Pipe{In,Out}Handle members extern
Genie:  Factor out new_pipe(), hide handle types