[WIP] Dead letter queue implementation

Includes fixes to AT framework that have been committed to develop of NSB

@johnsimons @SimonCropp @andreasohlund please take a look