Added methods to get streams from a Pipe instance.

Can be used to perform single-threaded communication if the need arises.