Initial version of some foundational code for queue master.