Stream piping.

Adds capability to pipe input from one stream to another.