More information in the case of an invalid offset
Added RepeatRule, to help debug flaky tests.
Added debug logging for flaky test
License headers..
Ensure index recovery happens after neostore fully recovered

Before this commit the deferred recovery of schema related indexes (done
in IndexingService#start) was done in NeoStoreXaDataSource#start. That
worked fine if the neostore data source could resolve all recovered
transactions by itself, i.e. there were only 1PC transactions or the
encountered 2PC transactions all had their 2PC log entries present.
If not then there were an additional pass where the tx log was consulted
and finally each individual data source was notified about what to do with
the pending transactions. If one or more transactions needed to involve the
tx log then making the neostore "OK" was delayed until after
TxManager#doRecovery had been called.

Now deferred schema index recovery takes place as part of the
TxManager#doRecovery pass and so will always see all recovered
transactions and get the deferred index updates from a fully recovered
store.
Some polish on the cluster prover
Merge pull request #2076 from tinwelint/2.0-recovery-fix

Ensure index recovery happens after neostore fully recovered
Merge branch '1.9-maint' into 2.0-merge-1.9

Conflicts:
	community/kernel/src/main/java/org/neo4j/kernel/impl/nioneo/store/Buffer.java
Merge pull request #2082 from tinwelint/2.0-merge-1.9

2.0 merge 1.9
Merge branch '2.0-maint' into 2.1-merge-2.0

Conflicts:
	community/kernel/src/main/java/org/neo4j/graphdb/factory/GraphDatabaseBuilder.java
	community/kernel/src/main/java/org/neo4j/kernel/InternalAbstractGraphDatabase.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/nioneo/xa/NeoStoreXaDataSource.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/transaction/TxLog.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/transaction/xaframework/LogEntry.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/transaction/xaframework/XaResourceManager.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/nioneo/store/TestNeoStore.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/nioneo/store/TestXa.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/nioneo/xa/NeoStoreTransactionTest.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/cluster/HighAvailabilityModeSwitcher.java
Merge pull request #2083 from tinwelint/2.1-merge-2.0

2.1 merge 2.0