Fix major performance issue in HTTP API
Fix major performance issue in HTTP API

Getting rid of all the JOINs in the main query that also contains the
CTE makes it fast again.

"MAKE INDICO FAST AGAIN!", LOL.

indico/indico,indico/indico,indico/indico,indico/indico