[SPARK-2165] spark on yarn: add support for setting maxAppAttempts in the ApplicationSubmissionContext

Can we make this spark.yarn.maxAppAttempts to fit with the camel case that other Spark properties use?