Add MockStream, an implementation of NetworkStream

MockStream facilitates unit testing of code that uses NetworkStream.
Include port in Host header

Fixes #88.