Fixed adding new policy

Jira-issue: WP-1255
Fixed setPolicy

- setPolicy now uses new getPolicy
- fixed new device insertion
- fixed new user insertion

Jira-issue: WP-1255
Merge pull request #19 from ccameroni/WP-1255-new-getPolicy-into-setPolicy

WP-1255 new get policy into set policy