Create a relative symlink for log files.

This matches what C++ does in practice, and permits this code to work
if -log_dir is a relative path.
Add logCtx and NewCtx() to easily include context in line headers.
Add a command line flag to set the flushDaemon interval.