Permissions model added in.
Added in new methods for checking role ID and fetching allowed permissions for a particular user.