YARN-1321. Changed NMTokenCache to support both singleton and an instance usage. Contributed by Alejandro Abdelnur. svn merge --ignore-ancestry -c 1537334 ../../trunk/