Added support for asynchronous prompting.

Policy checking now requires a callback to receive the prompt response.

Jira issue: WP-956
Fixed bad indentation.

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

Added support for asynchronous prompting.