Implementation of celery stats for active, pending and done tasks.

get_tasks is kind of a misleading name, maybe like populate_task_data