Add asynchronous prompting support.

A unique token is generated for each prompt, and the prompt request details and callback are cached with this token. The dashboard prompting app responds to prompts using this token, which is then used to call the appropriate callback.

Also rationalised the prompt choices to be the same for all prompt types.

Jira issue: WP-956
Added temporary dashboard widget.

Jira issue: WP-956
Remove redundant code

Jira issue: WP-956
Fixed tests.

Fixed tests to work with asynchronous prompt mechanism.

Also removed redundant references to promptMan module.

Jira issue: WP-956
Integrated prompt UI

Updated prompt widget to use UI

Jira issue: WP-956
Merge pull request #10 from TobyEalden/dashboard-prompting-03

Asynchronous prompting
Adjust for obsolete msgid parameter

The callback function is now passes as argument 2 rather than 3 since the msgid parameter has been removed.

Jira issue: wp-956
Merge pull request #11 from TobyEalden/dashboard-prompting-03

Adjust for obsolete msgid parameter
Extracted appId from RPC call interception

Jira-issue: WP-486
Fix bug in rpc interception

Rationalise the policy manager enforcement response to a simple binary, based on 0 == permit and anything else is denied.

Jira issue: wp-956
Add compatible call on existSync to work with Anode

Jira Issue: WP-1028
Merge pull request #12 from TobyEalden/dashboard-prompting-03

Fix bug in rpc interception
Fix bug in prompt reply handling

Change prompt reply value based on 0 == permit and anything else is denied.

Jira issue: wp-956
Allow Dashboard to pass from policy check
You need to expose a function to register local apis like ServiceDiscovery and Dashboard

Jira: WP-984
Merge pull request #14 from ziransun/WP-1028

Add compatible call on existSync to work with Anode
Merge pull request #13 from ccameroni/WP-486-extract-appid

WP-486 Extract appId from RPC call interception
Merge pull request #15 from TobyEalden/dashboard-prompting-03

Fix bug in prompt reply handling
Update rpcInterception.js

Webinos PZP will set webinosPath, this is needed for system test
Merge pull request #17 from habibvirji/patch-1

Update rpcInterception.js
Update rpcInterception.js

last commit had error in one line. Corrected.

Jira Issue: WP-955