Add support for max consecutive health check failures

After the maximum number of failures we tell Mesos to kill the task.
Work started by @berngp.