Added support for asynchronous prompting.

Policy checking now requires a callback to receive the prompt response.

http://jira.webinos.org/browse/WP-956