TEZ-647. Add support configurable max app attempts for Tez applications (bikas)