Big updates to client, socket, user, and connection_thread.