Cache ACL filtering

Filtering the projects by ACL can be expensive on larger setups, so
let's cache the result.

Signed-off-by: Michal Čihař <michal@cihar.com>
Merge branch 'master' into bootstrap