YARN-2493. Added user-APIs for using node-labels. Contributed by Wangda Tan.

(cherry picked from commit 180afa2f86f9854c536c3d4ff7476880e41ac48d)