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

To keep things consistent (these api's are public) I don't think we should add the getIntOption without adding other routines like getLongOption, etc.   For now can you just use getOption and then make it an Int.