Use a much faster query for /runs/queued/

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Add unit tests for /runs/queued/

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>