Add setPolicy bags management

Jira-issue: WP-1241
Fixed rule ids generation

Jira-issue: WP-1241
Merge pull request #12 from ccameroni/WP-1241-setPolicy-bag

WP-1241 setPolicy bags management