Introduce a unified mechanism for permissions checking in the UI
Summary: T418355
Test Plan: ./phpunit --testsuite=Browser
Reviewers: #hkccp_developers, mollekopf
Reviewed By: #hkccp_developers, mollekopf
Subscribers: #hkccp_developers
Differential Revision: https://git.kolab.org/D2524