WP 634 application policy creation

http://jira.webinos.org/browse/WP-634

Translation from application manifest to policy.