[2.1] Add support for migrating logs from 2.0 to 2.1

- some code cleanup and refactors
This would be perhaps better named as migrateNeoLogs or something similar, to contrast with migrateLuceneLogs below