Accept broadcast over TCP

Routers now accept broadcast messages over TCP in addition to UDP.  This
provides an additional reliability guarantee to clients, who may send
their messages over TCP to ensure they make it into the network.
Routers still use UDP to forward messages.

Additionally, some cosmetic changes to the code in nodeservice.c.