Initial import of the new Queue Manager code.

This is a slightly cleaned version of the Queue Manager code that
resulted from the first HRM Hackathon at SVI headquarters in 2012.