fix syntax error in packet.h
change bytequeue to read/write from more general void* instead of char*
add router.h to predeclare useful functions for router
fix variety of compiler errors in router.c