Downgraded most logging messages to debug priority because we're
no longer going to bother users with them unless debug is turned
Added stats functions to the packet module.
The code still doesn't compile; I'm only committing because I need
to pay attention to some other stuff for a while.