WIP: Refactor certificate agent and queue

Details to follow...
```put_marshalled_data(data_to_marshall=None)``` ?