Working on YARN-378. Most part is done. Need to deal with the max
retries in the RMAppIml constructor.