Bare bones of permission infrastructure. doesn't do anything yet.
Implemented permission directive infrastructure.