YARN-1482. Modified WebApplicationProxy to make it work across ResourceManager fail-over. Contributed by Xuan Gong. svn merge --ignore-ancestry -c 1556380 ../../trunk/