refactoring permissions into a mixin
Merge pull request #56 from epantry/permission-refactor

refactoring permissions into a mixin