Add TitleQuickPermissions hook to Title::checkQuickPermissions

Currently Title permissions hooks get called after
Title::checkQuickPermissions, preventing users from
overriding quick permission checks. Added a hook to
allow this. Needed for bug 45898.

Change-Id: Id672270741282778815b06eff8b234ca4d819744
Merge "Add TitleQuickPermissions hook to Title::checkQuickPermissions"