sophia: introduce transaction log cursor

It allows to iterate through transaction log, without
accessing an index.