WIP: Refactor certificate agent and queue

Details to follow...
Is ```___``` meant to mean "a variable whose contents we don't care about"? If so, could you use the dummy convention? If you use a variable called dummy0 or dummy1 etc., pylint will do the right thing with it (not flagging unused assignments etc.) and it's pretty clear to people that there's nothing good there.