SPARK-827: MAX_TASK_FAILURES not configurable

Add configuration for MAX_TASK_FAILURES. 

Sometimes there's a need to adjust number of retries (such as in real time situations when the request must rather be dropped on the floor than fulfilled much later than SLA).