Fix getPolicy method

Jira-issue: WP-1254
Fix indentation

Jira-issue: WP-1254
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 #18 from ccameroni/WP-1254-adapt-getPolicy

WP-1254 adapt get policy
Merge pull request #19 from ccameroni/WP-1255-new-getPolicy-into-setPolicy

WP-1255 new get policy into set policy