use config spark.scheduler.priority for specifying TaskSet's priority on DAGScheduler

https://issues.apache.org/jira/browse/SPARK-2618
Why the change from `val` to `def`?  I believe `val priority = if ... else ...` will work fine here.