[master] Migrate logs from older versions

Despite the fact that we can read older log versions at the runtime, this PR will add an extra step to the upgrade process which will be responsible to migrate older logs and order log entries. This is necessary because we must be able to read commit entries from the log files in the correct order. Indeed, entries can be mixed up in older log files but they _must_ be order by transaction id in 2.2.

Integration tests will be added in a separate PR, since it will require some kind of tool for "mixing up" entries in older log files.
I would absolutely go for a visitor based style instead of reading 25 Mb converted into java objects, which is at least 100 Mb ? (just guessing). Well, my point is that's unnecessary and should be avoided.