slapos_crm: Improve search by project and instances by using group by

   The goal here is:
       - Only check projects that have (at least one) monitored computers
       - Only check Instance Trees that have  (at least one) instance
1 job for master
in 0 seconds, using 0 compute credits, and was queued for 0 seconds