For years, car dealerships had a terrible reputation.