Permissions framework, +command framework

Fill in permissions framework code, start command framework creation