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

lets make the config name yarn specific.   spark.yarn.maxappattempts.

Also can you update the yarn documentation to include the new config and description.  lookin docs/running-on-yarn.md