Add structured question asking support to the `logtalk` built-in object

This new feature abstracts the common operation of asking a user a question and reading a term as the answer, which allows integration code and tools such as IDEs to intercept and handle user input.