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

(cherry picked from commit db7f1653198b950e89567c06898d64f6b930a0ee)