Deferred hook

Hi guys,

As I want to be able to monitor the messages in a precise way, I created a new hook "deferred". It should be called when the delivery of a message is being deferred.

For example in my use case I want to send the status of all the messages to a redis database, so I am writing a plugin that uses this hook to log the messages that weren't yet delivered and the reasons.