Webhooks: first version of a queue to retry callbacks

Simple queue that retries to emit the callbacks in case they fail. A lot to
improve yet, but the basic is working.