Fix an NPE with the persistence executor.
Added a gradle task that builds a jar that we can use, decoupled starting a queue from its constructor, and some minor fixes.