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

Ah and I see where you got the submissions from.  I'm fine with any of those also.  We'll see if Kyle responds otherwise I might take this over.  We should just make sure to document it we'll so user understands.