YARN-696. Changed RMWebservice apps call to take in multiple application states. Contributed by Trevor Lorimer. svn merge --ignore-ancestry -c 1520736 ../../trunk/