EXTVAL-158 improved proxy detection

git-svn-id: https://svn.apache.org/repos/asf/myfaces/extensions/validator/branches/branch_for_jsf_2_0@1582640 13f79535-47bb-0310-9956-ffa450edef68