core: Extract comm from pipes. #4742
auto merge of #5081 : brson/rust/pipes, r=pcwalton

r?