Added 'active_tasks' stat to master stats endpoint.

Review: https://reviews.apache.org/r/17442
Added queued and launched tasks to slave stats.

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