Corrected numerous critical regressions.

Corrected a severe regression in get_stdin_until_eot() identified by
the prior commit. Substantially improved is_query_line_yes(), though
such function could still benefit from a Thai foot massage.
is_integer_in_range() now actually works, which is more than can be
said for its prior desultory incarnation.