Remove the duplicate-property check from the normal execution path.
Removed some more unused code.
Merge remote-tracking branch 'upstream/master' into 2.2-remove-duplicate-property-check

Conflicts:
	community/kernel/src/main/java/org/neo4j/kernel/impl/core/NodeManager.java
Ensures legacy stores with Johnny Labels can be migrated

where Johnny is a node with an awful lot of labels, such that it spills
over into dynamic records.

Solved by creating the neostore upfront, for the batch importer to later
open. In between the node dynamic label store can be copied over.
Properly closes logging and puts test files in proer places

Problems probably only visible on Windows.
Fixes licensing issue
Merge pull request #3339 from tinwelint/2.2-bip-store-migrator-dyn-labels

Ensures legacy stores with Johnny Labels can be migrated
Merge pull request #3330 from chrisvest/2.2-remove-duplicate-property-check

Remove the duplicate-property check from the normal execution path.
[2.2] Clarify method names in relationship store and add a fill record method.

Reusing the relationship record gives some improvements in the micro benchmark
that traverses relationships.
Merge pull request #3345 from martinfurmanski/2.2-relationship-store-fill-record

Clarify method names in relationship store and add a fill record method.
Expose a way to ask a lucene index to sample index selectivity

o Scan a sample of index entries and compute uniqueSampledValues / sampleSize
Add a new CountsKey for index entry counts
Maintain index update counts from index proxies

o OnlineIndexProxy will ensure that the index counts are updated
o Fix bug when generate LazyIndexUpdates to never construct 'overlapping updates'
o Cleanup code in LazyIndexUpdates
o Make sure we update index update counts during population
Add minor version to CountsStore such that we can flush safely on index flip (outside of log rotation)

o Ensure we compare CountsKeys correctly by type
o Fix reading of index keys
o Add flushIndexCounts() to IndexStoreView
Remove index counts when dropping an index
Make index stats part of SchemaRead and add indexNumberOfEntries

Rationale: For planning to be sane, indices shouldn't appear or disappear out of nowhere, hence we need to be tied to the schema read lock
Add IndexStatisticsTest
Add prototype of IndexSamplingController
Hack IndexStatisticsTest to accept off-by-one caused by race from IndexPopulationJob
Pass on transaction id to index updaters