Gave Plugins ability to modify permissions

Fixes #2.