WP-1211 edit policies with devices

http://jira.webinos.org/browse/WP-1211