HADOOP-10818. native client: refactor URI code to be clearer (cmccabe)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HADOOP-10388@1612631 13f79535-47bb-0310-9956-ffa450edef68