Slave goes through 'switchToSlave' process on every 'masterIsElected' event
Fixes an issue which made it impossible to resume a migration

i.e. when the migration had been completed, and the migration aborted...
when it would be picked up again the next time to do the moving of files
from migration directory to store directory there would be an assumption
that the "migrate" method would have been run before it. This led to an
NPE for an uninitialized field.
Updates changelogs for 1.9.9 with last batch of changes
Merge pull request #3252 from tinwelint/2.1-resume-migration-fix

[2.1] Fixes an issue which made it impossible to resume a migration
Merge pull request #3217 from lutovich/1.9-slave-epoch-mismatch

[1.9] Slave goes through 'switchToSlave' process on every 'masterIsElected' event
Merge branch '1.9-maint' into 2.0-maint

Conflicts:
	enterprise/backup/CHANGES.txt
	enterprise/ha/src/test/java/org/neo4j/ha/TestSlaveOnlyCluster.java
Merge branch '2.0-maint' into 2.1-maint

Conflicts:
	enterprise/backup/CHANGES.txt
Merge branch '2.1-maint'

Conflicts:
	community/kernel/src/main/java/org/neo4j/kernel/impl/storemigration/StoreMigrator.java
	enterprise/ha/src/test/java/org/neo4j/ha/TestSlaveOnlyCluster.java
	enterprise/ha/src/test/java/org/neo4j/kernel/ha/ClusterTopologyChangesIT.java
	enterprise/ha/src/test/java/org/neo4j/test/AbstractClusterTest.java
Merge remote-tracking branch 'upstream/master'