Added user prompt/response functionality.

Adds the ability to send a prompt to the console to request information from the user. When the user responds, the response can be used in a callback function.