Fix a bug where specifying non-default settingsClasses in DefaultGraphDatabaseDependencies had no effect.
Switches to master/slave role in separate and single thread

Previously switching to master happened in the state machine event thread
which introduced problems if that for some reason took a long time since
no other events could be processed and eventually this instance to become
master would be suspect of suspicions from the other instance. This would
add instabilities during master switches and prolong some switches as
well.

Now the switching happens in a separate, yet single, thread that is shared
by both the slave and master switching and so they cannot happen
concurrently either.
Initialise LifeSupport.
Added message explaining backup has been archived.
Merge pull request #2226 from tinwelint/1.9-mode-switch-in-singlethread

Switches to master/slave role in separate and single thread
Merge pull request #2249 from digitalstain/1.9-maint

Fixes issue with state bookkeeping for reporting instance role
Merge pull request #2244 from chrisvest/1.9-fix-default-settings-classes

Fix a bug where specifying non-default settingsClasses in DefaultGraphDatabaseDependencies had no effect.
Tagging for version 1.9.7
Back to development version.
Uses TestDirectory
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
Fixed a store migration test that was disabled for Windows
Fix bugs in PersistenceWindowPool

- Make it resilient against very small store size and memory size
  configurations.
- Make `allocateNewWindow` give up if it cannot map a BrickElement reasonably
  quickly.
Bumping to 1.9.8