Moving badly formatted messages to error queue

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