WIP
Use callback based API for underlying lib.
Get dead letter declaration working and tidy up.