Added schema validation for policies (WP-27)

Fixed default policy and some jasmine tests

Jira issue: WP-27