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, write out and kill the buffer

network.c:
- push loginit() to the point where we know the actually used port
Merge pull request #588 from FullName/LoggingPreInitStoring

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