Clean up socket.dart a bit
Add client class