Flush output file after every log.
Fix date modified time format in generated html.
Only log user agent the first time someone connects.