Add error msg in "Add Repository" for invalid/unreadable source repositories

Make a synchronous "git ls-remote" in addrepository.py so that
the user gets immediate feedback for unreadable source
repository urls (for example, if an ssh git url is used and
the critic system user doesn't have passwordless access to
read from that ssh remote).