Moved socketstream class to client library.