Some improvements for dpd-event: on-delete and on-put events, exposing header to event scripts

This makes dpd-event a bit more flexible