Do not crash when removing old delivery
Ref #204 (closed) and #254 (closed)
The crash was caused by some entries generated by old versions of controlcenter which did not store the queue info. Now we just ignore them.
Also change the cleaning code execution frequency from 10 seconds to very rarely, 12 hours.
Finally, change some unit tests to cover some previously uncovered parts of the code.