Use same property equality logic in tx-state.

When looking up indexed nodes from the transaction state, we need to do
the same type coercions of property values that we do when looking up
nodes from the committed indexes. This is done by using the equality
defined in DefinedProperty.

Along with this the coercions made in DefinedProperty have been made
more explicit, and comparisons between integral numbers and floating
point numbers have been made more strict, so that only exact comparison
is ever made.
Create an interface for LogEntry
Introduce a wrapper to store the identifier for old log entry version (needed to reorder log entries)
When using the legacy log entry parsers use the wrapper to preserve the identifier info
Create a package for legacy logs related classes
Cleanup LogEntryWriter public methods
Cleanup of StoreMigrationParticipant interface
Fix in v0 command readers
Split LogHeaderParser in LogHeaderReader and LogHeaderWriter
Add support for migrating logs

We introduce a cursor based lazy reader which reads up all the log entry up to the first commit
and then start returning entries which belong to such committed transaction.
Such cursor will return log entries in order wrt transaction id, since commit entries
are always written in the log file in the correct order.
Reenable store upgrade tests from 1.9 and 2.0 in cluster mode
Fixed a slow id generator rebuild high id issue

where the high id would be set too high.
Also removes a test that, using complicated breakpoint testing, basically
tested that IdGeneratorImpl#setHighId throws exception when given -1 as
high Id. Replaced with a unit test.
Reduce probability of false failure of pageFaultForRead* test

The problem is that it can race with the optimistic "self-healing" of the cache
and therefor have a highly variable run time.

It would be better to stabilise the running time, but my attempts at doing that
have thus far only led to subtly breaking other things.
So this needs further investigation. In the mean time, this will break fewer
pull request builds.
Merge pull request #3124 from davidegrohmann/2.2-migrate-logs

[2.2] Migrate logs from older versions
Merge pull request #3104 from thobe/2.1-tx-lookup-type-coercion

[2.1] Ensure that we get the same index hits when looking up from tx state as when we look up from the committed index
Only reserve ids in reltype store, no other token store

since they just weren't built for it.
Merge remote-tracking branch 'upstream/2.1-maint'

Conflicts:
	community/kernel/src/main/java/org/neo4j/kernel/impl/api/StateHandlingStatementOperations.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/api/state/TxStateImpl.java
Merge pull request #3143 from davidegrohmann/merge-2.1-into-master

Merge 2.1 into master
Merge pull request #3136 from chrisvest/2.2-reduce-test-flakiness

[2.2] Reduce probability of false failure of pageFaultForRead* test
Fix formatting of the description of the mapped_memory_total_size configuration
Fix race condition between constraint creation and slave write.

This removes two race conditions present in 2.2 where a constraint creation
could be violated by a commit coming from a slave. By grabbing a schema read
lock on every slave commit, we ensure exclusive access to committing schema
transactions.
Merge branch '1.9-maint' into 2.0-maint