celery_backend.config: add a method to get queue statistics from RabbitMQ
First part of implementing T726