Add warn_unused_result to B_FUNC

Also disable warn_unused_result on buggy[1] version of GCC.

[1] The GCC maintainers do not feel warn_unused_result
    should be suppressable with a void cast or another
    method.
Fix HAVE_NOT_GCC_BUG_56273 test

HAVE_NOT_GCC_BUG_56273 always failed because the program
would not link.  Add a main and an implementation of bar so
the test program can link if it can compile.
Enable Valgrind memory leak checking

Also fix some minor test-specific leaks in TestFile.
Test QuestionDispatch and fix bug on error

If an error was reported through AnswerContext,
QuestionDispatch would try to write a NULL answer to the
database.
Rewrite ProcessLoop into ProcessManager

This patch rewrites the ProcessLoop interface an
implementation.

ProcessLoop managed the process event loop for you.  It
required multiple threads to use properly and was unsafe in
various cases (especially error conditions).

ProcessManager lets the caller control the event loop,
allowing single-threaded use.  This simplifies the
implementation at the cost of more complicated usage code.

ProcessManager also lets the caller create the process.
This means the caller is not limited by the capabilities of
the ProcessManager interface.  ProcessLoop was in complete
control of spawning child processes, meaning you could not
(for example) set environment variables in the child process
without changes to ProcessLoop.