cpp: consolidate with LogTsdb
cpp: missing API checkins
cpp: refactored LogTsdb code to reuse between LevelTsdb and FileLogTsdb