Move QuestionQueue dequeueing into b_main
Compile ex1 and fix errors

In the migration to CMake, the examples were no longer being
compiled.  Some other refactorings (new source files) broke
running ex1, too.

This patch makes ex1 compile and run again.
Factor out QuestionQueueRoot

I'm trying to make b_main smaller.