Resource perms UT and Refactoring
Created by: khaledAhmed-arm
- Add UT for resource_perms component and Generalize set_agent_resource__permissions functions to be only one function can handle all set permissions for all protocols set_agent_resource_permissions.
- Move default permissions backing up allocation into init of the resource perms.