(feat)[rule_sets]: Added rules_set api endpoint and Backend transformation rule implementation

[SD-1197] - API: RuleSet endpoint
[SD-1199] - Backend: Implement transformation on ingest
We should probably rethink about this step as we can't keep on changing the count whenever a new privilege added. It becomes more complex when more than one developer works on privileges for different resources.