Use debug loglevel in received packets handlers.
Simplify armor code using new byte_array functions.