YARN-2494. Added NodeLabels Manager internal API and implementation. Contributed by Wangda Tan.