Fixes an issue with phase2Timeout on proposer state

When an instance times out on phase 2, if it is closed or delivered
 it should have its payload retried. This patch adds this functionality.
Fixed a conflict resolution mistake

effectively removing an (almost) duplicated line. Introduced by
46c41198a17b94f352cbe4e4e8c62778c442c172
Doesn't close IndexReader after verifying deferred constraints

that should be up to the SearcherManager. Closing the IndexReader manually
and then trying to release the searcher holding will fail and consecutive
calls to SearcherManager#acquire will get stuck in busy-loop.

This solves a problem that caused the index population phase to hang after
the node scan was complete, when flipping to ONLINE state and there were
one or more updates to apply before flipping. Having a constraint creation
hang caused the schema write lock be held indefinitely.
Merge pull request #1886 from tinwelint/2.0-fix-constraint-hanging

Discussed with @tinwelint. I had misunderstood the lucene APIs and this change looks sensible.
Updates changelogs for 1.9.6
CHANGES.txt for indexing changes.
Updates changelogs for 2.0.1
Merge pull request #1887 from apcj/2.0-changelogs

2.0.1 changelogs
Makes field final in PaxosClusterMemberEvents.ClusterMemberSnapshot

Also fixes some formatting in PCME
Fixes cluster joining process for Ha backup clients

There were two problems with HaBackupProvider, both on cluster
 joining. One was that it depended on snapshots to discover the
 state of the cluster, while since 1.9.6 this has changed and joining
 instances must as for elections. The other was that it passed in a null
 for a SnapshotFilter, which caused NPEs and did not let the availability
 messages to be processed. Both problems are now solved.
Changes ignore reason for BackupHaIT test

Before it was a pending backport. Unfortunately, there appears to be
 some flakyness in the test, which points to a bug. Needs investigation.
Merge branch '1.9-maint'

Conflicts:
	community/kernel/CHANGES.txt
	community/server/CHANGES.txt
	enterprise/backup/CHANGES.txt
	enterprise/cluster/CHANGES.txt
	enterprise/ha/CHANGES.txt
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/backup/HaBackupProvider.java
	packaging/standalone/standalone-advanced/src/main/distribution/text/advanced/CHANGES.txt
	packaging/standalone/standalone-community/src/main/distribution/text/community/CHANGES.txt
Update cypher/CHANGES.txt
Updated the compiled list of changes with Cypher changes since 2.0-RC1
Update changelogs for 2.0.1
Merge pull request #1892 from cleishm/changelogs

Update changelogs for 2.0.1
Remove duplicate entries in CHANGES.txt files
Uses a DEV_NULL StringLogger instead of SYSTEM

due to, most likely, a problem with the test or even SubProcess that the
piping of System.out/System.err from the sub process where those buffers
fill up in the sub process since the parent process doesn't pull that
data. When those buffers have filled up, then any write to its System.xxx
will block awaiting the buffer to drain, which it doesn't.

The current fix is just to not use System.out in this test, however a
future fix should be to look at and fix the issue in SubProcess itself.

(cherry picked from commit 291f7be09ccfc561a1de3dbda4d18ecc43ce8094)
Closes uncached IndexReaders after single lookup completed

There's an intricate scenario where we need to return the PrimitiveLongIterator
at a place where subsequent filtering will happen outside the method
producing it, but at the same time we need to close an uncached index reader
once the lookup result have been gone through.

For that introduced PrimitiveLongResourceIterator which will be closed similarly
to ResourceIterator in finally block in single(iterator).
Merge pull request #1894 from tinwelint/2.0-close-uncached-index-readers

Closes uncached IndexReaders after single lookup completed