Move config for the manual to doctools.
Follow-up on moving the manual to neo4j.com/docs.
Merge branch '2.0-maint' into 2.1-maint

Conflicts:
	manual/js/colorize.js
	manual/src/community/help.asciidoc
	packaging/standalone/permalinks.properties
Merge branch '2.1-maint'

Conflicts:
	manual/common/css/positioning.css
	manual/common/main.js
	manual/conf/disqus-footer.xsl
	manual/conf/footer.xsl
	manual/conf/head.xsl
	manual/conf/webhelp.xsl
Include missing JMX docs.
This also fixes a validation error.
Merge pull request #3318 from nawroth/2.0-extract-docs-config

Move config for the manual to doctools.
Merge pull request #3322 from nawroth/2.1-maint

Move config for the manual to doctools.
Merge pull request #3323 from nawroth/master

Move config for the manual to doctools.
Merge branch '2.0-maint' into 2.1-maint
Merge branch '2.1-maint'
PhysicalWritableLogChannel reports correct positions

A recent change b549c380817e5be0159698f57743ae10331a6568 changed
transaction appending logic to batch writes to the underlying
StoreChannel, instead of for every append. On slaves in HA which now
applies transactions in batches didn't see any change in log position
until a whole batch had been applied. This had an unexpected effect that
potentially many transactions would be appended with the same position in
its log start entry.

The only actual fix in this commit is that
PhysicalWritableLogChannel#getCurrentPosition() now looks at the
underlying channel AND the buffered data that hasn't been written yet.
Merge pull request #3326 from tinwelint/2.2-fix-log-position

PhysicalWritableLogChannel reports correct positions
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