YARN-2698. Moved some node label APIs to be correctly placed in client protocol. Contributed by Wangda Tan.

(cherry picked from commit e0233c16ebd06bb3aabeb523cd17259008e243ef)