WIP: Refactor certificate agent and queue

Details to follow...
So you're filtering out anything you don't expect from the body of the request. Do you think there should be some warning logged when your requests have a queer shape? It might be useful to help you debug when, e.g., there is a change to what LMS sends over but somebody has forgotten the corresponding change on this side.