Cosmology with varying constants