Livestatus: Use HistoryTable for log/statehist tables.

Refs #5351
Livestatus: Move log entry parsing into FetchRows().

Refs #5351
Livestatus: Call addRowFn directly in UpdateLogEntries().

Refs #5351
Refs #5369
Merge branch 'fix/livestatus-hist-tables-5351' into next

Fixes #5351