Added permissions manager

Added a permissions manager, to manage all the permissions.