Adding custom permissions

Create from here: http://docs.simplemachines.org/index.php?topic=998.0

Developing SMF