Improve preferred IdP match to work with hostnames
This PR improves the preferred match logic internal to ciecplib.utils.get_idp_url
so that it works also with domain names, e.g. so that get_idp_url('ligo.org')
actually matches the login.ligo.org
server first, and not login2.ligo.org
(as documented).