Beginning to centralise packet handling

Instead of having multiple *_handlepacket functions, replace with a single networking_poll function.

Also fixed LANdiscovery and friendreq using the same number in packet[0].