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

- some code cleanup and refactors
I have copied it from Legacy19... hence it is a processor as well. Probably we can have only one, I assumed we had different lucene command between 1.9 and 2.0.