YARN-534. Change RM restart recovery to also account for AM max-attempts configuration after the restart. Contributed by Jian He. svn merge --ignore-ancestry -c 1466208 ../../trunk/