Make the WorkQueue priority-aware when pulling

Change the SQL queries to group jobs by priority
and modify the couchDB list functions to avoid
job slots considerations. Instead the WorkQueue backend
module takes care of diminishing the slots based on
priority levels and the workqueue elements being analyzed.