Add a Repository#lookup_by_url

To be used to lookup by host + namespace + name now that the url field
is deprecated.