Fix 2.5 bugs in the Whois client:

- Fix a string parsing bug in how referral servers were handled.
- Handle port correctly for referral servers.
- Add a blacklist feature to the referral list. If we hit something on
  the blacklist, we bail out early and return the transient result.