Permissions API

Permissions API specification, minecraft/forge patches and default implementation by me and @AbrarSyed

This is a repull for pull request #1122 , with Lex's suggestions implemented.

Feel free to comment if there's anything else.

Related FML PR: MinecraftForge/FML#498