Add logCtx and NewCtx() to easily include context in line headers.
Add a command line flag to set the flushDaemon interval.