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

I'm not a fan of mutating the task object, this should create a new dictionary and return instead of modifying.