Cosmology and action-at-a-distance electrodynamics