TEZ-1116. Refactor YarnTezDAGChild to be testable and usable for
LocalMode. (sseth)