Refactor permissions classes to make it even easier to create a new permissions driver.

Signed-off-by: Ben Corlett <bencorlett@me.com>