Fix memory leak; was leaking TOC for every sent packet

Add memory logging channel

Clear up reallocation in m_buf.c a little

Add some functions to return bandwidth stats

Don't allocate a new packed TOC for every sent packet; keep it around in
the netchan instead