Master fixes and optimizations ged

* Unbreak the search
* reduce the number of queries in controller repo (will do 1 query instead of 1 query for each branch)
* correctly notifies github at build creation (if duplicate)