Remove a great deal of the old Queue Manager.

- This functionality is to be replaced by the new Python QM.
- A bit of the old functionality remains in this file for when we need to populate the database (which eventually should also be implemented in Python).