decoded packets are now a wrapper around their buffer
clean up the packet/buffer interfaces and test/fix channel sending