added some extension methods for testing.
DeliveryRouter now publishes a Sent message when delivery is completed.