Add <dirlog-record-stats> and <imdb-record-stats> (rev. 32)

Signed-off-by: nixnodes <code@eth.si>