Modified appId definition

Jira-issue: WP-709
Modified error handling

Jira-issue: WP-709
Added code to write new app policy to policy file

Jira-issue: WP-709
Added code to append old policies into the new policy-set

Jira-issue: WP-709
Bugfixing

Jira-issue: WP-709
Modified jasmine test

Jira-issue: WP-709
Fixed error handling

Jora-issue: WP-709
Fixed jasmine test on windows

Jira-issue: WP-709
Added usage of widgetId, userId and requestorId

Jira-issue: WP-709
Added jasmine tests to check new IDs usage

Jira-issue: WP-709
Added label attribute management

Jira-issue: WP-709
Added jasmine test about label attribute

Jira-issue: WP-709
Added prompt rules

Jira-issue: WP-709
Added jasmine test for prompt rules

Jira-issue: WP-709
Added check on required features

Jira-issue: WP-709
Added jasmine test on missing required feature

Jira-issue: WP-709
Removed check of required features

Required features' check can't be done when receiving a remote request

Jira-issue: WP-709
Removed test of missing features

Jira-issue: WP-709
Fixed policy replacement

Jira-issue: WP-709
Added tests on policy replacement

Jira-issue: WP-709