Throttles cluster transition logging.
Merge pull request #2053 from jakewins/1.9-transitionthrottle

Throttles cluster transition logging.
Fix a bug where store migration forgets about legacy indexes.

IndexManager now also respects the availability guard (by virtue of transaction begin) when creating an index.
Only migrate legacy index.db store files if they exist.
Merge pull request #2088 from chrisvest/legacy-index-migration

Fix a bug where store migration forgets about legacy indexes.
Returns a copy of the suspicions set

out from the HeartbeatContext so that putting that set in a message that
gets processed and serialized later on won't risk concurrent modification
issues with other incoming message handling modifying that set.
Fix issue with cluster bricking if specific message lost when master leaves.

 o When a master leaves, if the leave learned message did not reach the machine with the
   lowest id, the other instances would wait for that instance to start an election
   indefinitely. The instance with the lowest id would realize it was out of date, but
   try and contact the (now dead) master to catch up, and would not retry when that failed.

 o This implementation fixes this by preferring instances more likely to be live and to have
   the paxos instance id we are interested in (see CommonContextStateTest and LearnerStateTest).
 o It also introduces proper retries if the catchup fails.
Aligning with TeamCity
Merge pull request #2091 from jakewins/1.9-learnit

Fixes problem with re-electing master on message loss
Merge branch '1.9-maint' into 2.0-merge-1.9

Conflicts:
	community/kernel/src/main/java/org/neo4j/kernel/IndexManagerImpl.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/storemigration/StoreMigrator.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/storemigration/legacystore/LegacyStore.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/storemigration/StoreMigratorTestIT.java
	enterprise/cluster/src/main/java/org/neo4j/cluster/protocol/atomicbroadcast/multipaxos/LearnerContext.java
	enterprise/cluster/src/main/java/org/neo4j/cluster/protocol/atomicbroadcast/multipaxos/LearnerState.java
	enterprise/cluster/src/main/java/org/neo4j/cluster/protocol/atomicbroadcast/multipaxos/MultiPaxosContext.java
	enterprise/cluster/src/main/java/org/neo4j/cluster/protocol/heartbeat/HeartbeatState.java
	enterprise/cluster/src/test/java/org/neo4j/cluster/protocol/atomicbroadcast/multipaxos/ProposerStateTest.java
	enterprise/cluster/src/test/java/org/neo4j/cluster/protocol/heartbeat/HeartbeatContextTest.java
	enterprise/cluster/src/test/java/org/neo4j/cluster/protocol/heartbeat/HeartbeatStateTest.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/cluster/zoo/ZooKeeperHighAvailabilityEvents.java
	enterprise/ha/src/test/java/org/neo4j/ha/QuorumWritesIT.java
	enterprise/ha/src/test/java/org/neo4j/ha/TestPullUpdatesApplied.java
Merge pull request #2130 from tinwelint/2.0-merge-1.9

Merge 1.9 --> 2.0