Va. compromise allows Tesla to apply for single dealership license