Refactored task launching in the master.

This adds addTask(), which is similar to addSlave() and addFramework().
The benefit is that we allow the caller to add the task and have control
over when the RunTaskMessage is sent.

Review: https://reviews.apache.org/r/28364