WP-1241 setPolicy bags management

http://jira.webinos.org/browse/WP-1241

setPolicy now can edit policies containing bags