moved the ClinicRepository into some separate repos

There is still some polish up to be done.