Add StreamPair.

This creates a matching pair of NSInputStream and NSOutputStream
subclasses, with anything written to the output appearing on the
input.

This class is thread-safe, so this can be used to move data between
threads.