Moved packet reflection code around, added logger utilities

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>