Revert: Reverts HA state transitions if one or more state transition listeners fail

This will make the state machine more resilient and a retried event will
be able to succeed. (1461f2a4d0f74db6cf998d1af47e0a10e81670a4)
On master switch fail, now demote the instance

Conflicts:
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/HighlyAvailableGraphDatabase.java
	enterprise/ha/src/test/java/org/neo4j/kernel/ha/cluster/HighAvailabilityModeSwitcherTest.java
Remove deprecated tests
Compilation problem
Brought back some example store files accidentally deleted by the release script
Compilation on Java 8.
Provides legacy/sample stores as .zip to avoid some release scripting issues
Merge branch '1.9-maint' into 2.0-maint

Conflicts:
	community/kernel/src/test/java/org/neo4j/kernel/impl/storemigration/MigrationTestUtils.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/storemigration/NeoStoreVersionRecordUpgradeIssueIT.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/storemigration/StoreMigratorTestIT.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/storemigration/legacystore/ReadRecordsTestIT.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/transaction/xaframework/TestUpgradeOneDotFourToFiveIT.java
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/exampledb/active_tx_log
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/exampledb/messages.log
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/exampledb/neostore
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/exampledb/neostore.id
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/exampledb/neostore.nodestore.db.id
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/exampledb/neostore.propertystore.db.arrays
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/exampledb/neostore.propertystore.db.arrays.id
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/exampledb/neostore.propertystore.db.id
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/exampledb/neostore.propertystore.db.index
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/exampledb/neostore.propertystore.db.index.id
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/exampledb/neostore.propertystore.db.index.keys
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/exampledb/neostore.propertystore.db.index.keys.id
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/exampledb/neostore.propertystore.db.strings
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/exampledb/neostore.propertystore.db.strings.id
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/exampledb/neostore.relationshipstore.db.id
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/exampledb/neostore.relationshiptypestore.db.names
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/exampledb/tm_tx_log.1
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/propkeydupdb/active_tx_log
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/propkeydupdb/index/lucene.log.active
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/propkeydupdb/neostore.nodestore.db.id
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/propkeydupdb/neostore.propertystore.db.arrays
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/propkeydupdb/neostore.propertystore.db.arrays.id
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/propkeydupdb/neostore.propertystore.db.strings
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/propkeydupdb/neostore.propertystore.db.strings.id
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/propkeydupdb/neostore.relationshipstore.db.id
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/propkeydupdb/neostore.relationshiptypestore.db.id
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/propkeydupdb/neostore.relationshiptypestore.db.names
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/propkeydupdb/neostore.relationshiptypestore.db.names.id
	community/kernel/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/propkeydupdb/nioneo_logical.log.active
	community/lucene-index/src/test/java/org/neo4j/index/impl/lucene/LuceneThreeFiveUpgradeIT.java
	community/lucene-index/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/indexcompat/neostore.labeltokenstore.db.id
	community/lucene-index/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/indexcompat/neostore.nodestore.db.labels.id
	community/lucene-index/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/indexcompat/neostore.relationshipstore.db.id
	community/lucene-index/src/test/resources/org/neo4j/kernel/impl/storemigration/legacystore/indexcompat/neostore.relationshiptypestore.db.id
	community/server/src/test/java/org/neo4j/server/preflight/TestPerformUpgradeIfNecessary.java
	community/server/src/test/resources/org/neo4j/server/preflight/legacystore/exampledb/active_tx_log
	community/server/src/test/resources/org/neo4j/server/preflight/legacystore/exampledb/messages.log
	community/server/src/test/resources/org/neo4j/server/preflight/legacystore/exampledb/neostore
	community/server/src/test/resources/org/neo4j/server/preflight/legacystore/exampledb/neostore.id
	community/server/src/test/resources/org/neo4j/server/preflight/legacystore/exampledb/neostore.nodestore.db.id
	community/server/src/test/resources/org/neo4j/server/preflight/legacystore/exampledb/neostore.propertystore.db.arrays
	community/server/src/test/resources/org/neo4j/server/preflight/legacystore/exampledb/neostore.propertystore.db.arrays.id
	community/server/src/test/resources/org/neo4j/server/preflight/legacystore/exampledb/neostore.propertystore.db.id
	community/server/src/test/resources/org/neo4j/server/preflight/legacystore/exampledb/neostore.propertystore.db.index
	community/server/src/test/resources/org/neo4j/server/preflight/legacystore/exampledb/neostore.propertystore.db.index.id
	community/server/src/test/resources/org/neo4j/server/preflight/legacystore/exampledb/neostore.propertystore.db.index.keys
	community/server/src/test/resources/org/neo4j/server/preflight/legacystore/exampledb/neostore.propertystore.db.index.keys.id
	community/server/src/test/resources/org/neo4j/server/preflight/legacystore/exampledb/neostore.propertystore.db.strings
	community/server/src/test/resources/org/neo4j/server/preflight/legacystore/exampledb/neostore.propertystore.db.strings.id
	community/server/src/test/resources/org/neo4j/server/preflight/legacystore/exampledb/neostore.relationshipstore.db.id
	community/server/src/test/resources/org/neo4j/server/preflight/legacystore/exampledb/neostore.relationshiptypestore.db.names
	community/server/src/test/resources/org/neo4j/server/preflight/legacystore/exampledb/tm_tx_log.1
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/HighlyAvailableGraphDatabase.java
	enterprise/ha/src/test/java/org/neo4j/kernel/ha/cluster/HighAvailabilityModeSwitcherTest.java