Permissions API

Permissions/Groups API specification, minecraft/forge patches and default implementation by me and @AbrarSyed
CommandBase.getRequiredPermissionLevel is invoked if you 1) extend CommandBase and 2) don't already override canCommandSenderUseCommand.

This is specified with a default value or 4.