Optimized priority_queue - don't delete empty queues. Just inactivate them
and reuse later.
Used relative imports for handlers.
Used relative imports for queues.
Used relative imports for settings.