Fix policy manager loading

The policy manager was also failing to load because
it was using webinos-utilities, which was not present
in node_modules for this module.  This fixes that
problem.  It also automatically creates a new, valid
policy file when the policy manager starts, to get rid
of another error.

Jira issue: WP-968
Modify testing approach to fail on more errors

The Travis test framework was not producing errors when some tests failed.
This has now been fixed.  We're also not testing for node 0.10.

Jira issue: WP-945
Put webinos-utilities in dev-dependencies list.

Jira issue: WP-968
Update package.json
Merge pull request #8 from jplyle/fix-travis

Modify testing approach to fail on more errors
Merge pull request #6 from jplyle/copy-default-policy

Fix policy manager loading
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