Added a permissions system

Todo: Implement some quicker way to find a user's permission level and
send it directly to the module instead of checking the user's permission
in the module.