Electromagnetism, local covariance, the Aharonov-Bohm effect and Gauss' law