PLINK-268 implement all methods for ContextualPermissionManager, minor fixes