Altered the MockSocket api to allow us to use streams to put data in
Refactored the tests to use a new socket stub style
Added the start of an API