Move MockBuilder into own file

Also adds the option for the returned stream to trigger 'error' events
when consumers read the data.
Proxy 'error' events triggered by the message stream

If the message read stream triggers an error event, it should
be proxied so that users of the transport are notified.