Allow external permission checking. Adds BUKKIT-4740.

Allows developers to manipulate the permission checking process.