Allow loginit() to be delayed, store loglog() data in intermediate buffer...

... and flush it out when loginit() is called

util.c:
- handle loglog() before loginit() by storing the lines into an expanding buffer
- when loginit() is called, (try to) write out and then (always) kill the buffer

network.c:
- push loginit() to the point where we know the actually used port