More work on SqlJobQueue job persistence, and some maintenance and refactoring of BasicJobQueue.