Refactor Transports to use HashDict of Sockets
Clean up Socket and HashDict access