Added various input formats management

Jira-issue: WP-1211
Change editPolicy function parameters

Jira-issue: WP-1211
Modified editPolicy function to add devices

Jira-issue: WP-1211
Added friends generic uris and bags

Jira-issue: WP-1211
Bugfixing

Jira-issue: WP-1211
Merge pull request #15 from ccameroni/WP-1211-edit-policies-with-devices

WP-1211 edit policies with devices