Introduce concept of canonical urls for repositories

Particularly useful if a developer build is requested and the repository
url is in a different format than the url stored in the DB.