Add const header accessor for packet. Move freestanding as_header()
functions to header - now used also by stream_channel's transmit_ack().
Get header using member function instead of freestanding.
Fix porting bug which caused ACKs to be not sent when necessary.
Add higher-level transmit_ack() implementation.