added status endpoint to indicate ability to process transactions, additional to the existing master/ slave endpoints
Removes a test that isn't complete and has been ignored over a year

(cherry picked from commit 9c34b48a20d34c2aaf837d5e6394e547130b39f0)
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.

(cherry picked from commit 1461f2a4d0f74db6cf998d1af47e0a10e81670a4)
Minor fix to clustering tutorial formating.

(cherry picked from commit 72b24acc95b93e7928e76dd69a2d40628176843c)
Adds tests for state rollback in HAMSM

(cherry picked from commit d62194d2c9f04003ae9c695c8d1c51cfb0f8951d)
Fixes an issue of unexpected message payload in a timeout message

Also added some more sanity checks.

(cherry picked from commit 79c4c3f18940bbe5d7a358dc65857751d6345f0a)

Conflicts:
	enterprise/cluster/src/test/java/org/neo4j/cluster/protocol/atomicbroadcast/multipaxos/ProposerStateTest.java
Passes correct payload for phase1Timeout messages

There was an issue where a phase1Timeout occured, but no payload passed
with it. The consumer of such a timeout used the payload and made it
available for later usage even, which then would unexpectedly fail.

Now, wherever applicable, the correct payload is sent with such timeout
messages.

co-author: Rickard Öberg, @rickardoberg
(cherry picked from commit b40b8b6ebdb86de126ee4c3a48eeb361f32a16e5)

Conflicts:
	enterprise/cluster/src/test/java/org/neo4j/cluster/protocol/atomicbroadcast/multipaxos/ProposerStateTest.java
	enterprise/cluster/src/test/java/org/neo4j/cluster/protocol/cluster/ClusterStateTest.java
Uses a snapshot of the reference to Master instead of a proxy

so that the master cannot change all of a sudden in the middle of
operations. This fixes a problem where a service which was instantiated
for one specific master continued to run for a different master after a
sudden master switch. Specifically this resulted in misuse of id ranges,
potentially received from a different master than expected.

(cherry picked from commit e87c2a855d5439659c0b1951cc79c7d3c1749001)

Conflicts:
	community/kernel/src/test/java/org/neo4j/test/OtherThreadExecutor.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/HighlyAvailableGraphDatabase.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/LabelTokenCreatorModeSwitcher.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/PropertyKeyCreatorModeSwitcher.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/RelationshipTypeCreatorModeSwitcher.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/cluster/HighAvailabilityModeSwitcher.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/lock/LockManagerModeSwitcher.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/transaction/TxHookModeSwitcher.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/transaction/TxIdGeneratorModeSwitcher.java
	enterprise/ha/src/test/java/org/neo4j/ha/TransactionConstraintsIT.java
Passes along phase1Timeout payload in all places

(cherry picked from commit 1a42148dd347b83f69f87e12f9524c0db9e44b9e)
Fixes #1697

Fixes #1697 which is an issue where replacing a property on an entity
using batch inserter where the property would be bigger than the one it
overwrote so that it would need to go into a new property record. There
would be a NullPointerException due to removing that property block from
the property record two times.

(cherry picked from commit 45a16ed812a2694b1b5dba589c630425f8b3db57)

Conflicts:
	community/kernel/src/main/java/org/neo4j/unsafe/batchinsert/BatchInserterImpl.java
	community/kernel/src/test/java/org/neo4j/unsafe/batchinsert/TestBatchInsert.java
Enabled more tests for tx event handlers

so that more is tested, also afterCommit(). Some issues was exposed which
were also fixed.

(cherry picked from commit 4ed6f7be6b6218473e1d6da5b78d5074b19e08d7)

Conflicts:
	community/kernel/src/main/java/org/neo4j/kernel/impl/core/WritableTransactionState.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/event/VerifyingTransactionEventHandler.java
Sends booked instance payload for repropose after rejectPrepare

this will fix an issue where there were a null payload when reproposing an
instance.

(cherry picked from commit 5977faf23b0eaa7f4e437ca133246092db8f4d63)
Merge pull request #1738 from lassewesth/availabilityendpoint2

added status endpoint to indicate general ability to process transactions
Merge pull request #1747 from tinwelint/1.9-backport-cluster-stuff

1.9 backport cluster stuff
Update copyright for 2014 (happy new year!)
Merge pull request #1774 from cleishm/happy-new-year_1.9-maint

Update copyright for 2014 (happy new year!)
Test and fix for failing to start transaction in MasterImpl.

(cherry picked from commit b453f98dba1e5bcb8e19d5f5f2efcc68eb09c75a)
Master generates and propagates an epoch

that slaves must use for all further communication with it, or fail with
InvalidEpochException. This is to prevent the scenario where one part of a
transaction or commit communicates with one master, there's a master
switch where the new master instance uses the same host and port as the old one.
If a transaction would continue through such a scenario then unexpected
things and bad things might happen.

(cherry picked from commit b76f8e34f7184e1457e37f6da6137bfbde79c3e5)

Conflicts:
	community/lucene-index/src/main/java/org/neo4j/kernel/api/impl/index/LuceneDocumentStructure.java
	community/lucene-index/src/test/java/org/neo4j/kernel/api/impl/index/LuceneDocumentStructureTest.java
	enterprise/com/src/test/java/org/neo4j/com/MadeUpClient.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/HaRequestType20.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/HighlyAvailableGraphDatabase.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/MasterClient20.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/cluster/HighAvailabilityModeSwitcher.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/com/RequestContextFactory.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/com/master/MasterImpl.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/com/master/MasterServer.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/com/slave/MasterClient153.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/com/slave/MasterClientResolver.java
	enterprise/ha/src/test/java/org/neo4j/kernel/ha/cluster/HighAvailabilityModeSwitcherTest.java
	enterprise/ha/src/test/java/org/neo4j/kernel/ha/com/master/MasterImplTest.java
	enterprise/ha/src/test/java/org/neo4j/kernel/ha/id/HaIdGeneratorFactoryTest.java
Merge pull request #1813 from tinwelint/1.9-backport-master-epoch

BACKPORT Master generates and propagates an epoch
Fixes problem with parser not being thread safe