Add the requested hostname to the Perforce repo path lookup.
Add the requested hostname to the Perforce repo path lookup.

When attempting to find aliases for the requested hostname for a
Perforce server, we were assuming that gethostbyaddr would return the
original hostname as the first result. This isn't always the case,
though. We now factor in the original hostname in this list.

We also now simplify repository lookups in the case where there are no
aliases by returning the repository path directly instead of a list of
repository paths. That prevents having to fetch the whole list of
suitable repositories server-side and scanning through them for matches.

haosdent/rbtools,halvorlu/rbtools,haosdent/rbtools,halvorlu/rbtools,davidt/rbtools,davidt/rbtools,reviewboard/rbtools,beol/rbtools,datjwu/rbtools,halvorlu/rbtools,datjwu/rbtools,1tush/rbtools,reviewboard/rbtools,haosdent/rbtools,datjwu/rbtools,davidt/rbtools,beol/rbtools,beol/rbtools,reviewboard/rbtools