If we are going to do rstgen in-process, maybe we should change it so ``main()`` takes a session param. Then we can avoid the circular reference.  And we can just get rid of ``bin/rstgen``?