[repoapi] fold ClientConnection into Connection [applied]