Removes the ComException wrapping of server-side BranchedDataException

which is no longer needed due to recent changes in exception streaming
from server to client. In fact the wrapping prevented a slave to properly
react to branched data and would make that slave unable to ever join the
cluster.
Making the reporting of BiasedWinnerStrategy a bit easier to

o This is a 1.9 version - lots of classes moved around so I've
  submitted a 2.0 version as well
o Changed wording so it describes it in words that will be easier
for the field team to understand
o Added tests around the BiasedWinnerStrategy
Merge pull request #1871 from mneedham/1.9-maint-bws

Making the reporting of BiasedWinnerStrategy a bit easier to
Merge pull request #1870 from tinwelint/1.9-branched-slave-fix

Removes the ComException wrapping of server-side BranchedDataException
Fixes an issue with phase2Timeout on proposer state

When an instance times out on phase 2, if it is closed or delivered
 it should have its payload retried. This patch adds this functionality.
Logs file sizes when copying store files from master
Removes LogBufferFactory and its default implementation

There was only one implementation of LogBufferFactory which
 was a straightforward call to DMLB constructor. This did
 not call for the need for a factory abstraction and since
 it was complicating upcoming work on monitoring it has now
 been removed.
Introduces byte count monitoring in DirectMappedLogBuffer

Uses the Monitors functionality to add bytes written counting
 facilities to DirectMappedLogBuffer. Achieved via introducing
 a LogBufferMonitor interface that is used by DMLB.
XaLogicalLog and TxLog require access to Monitors to
 create the proper monitor and pass it to their DMLB.
Renames LogBufferMonitor to ByteCounterMonitor

It is clear after some usage that log buffer monitoring is really
 a case of counting bytes, functionality that needs to be replicated in
 other places as well. It makes sense therefore to have LogBufferMonitor
 strictly count bytes, rename it to ByterCounterMonitor and reuse it
 where necessary.
Removes support for HA protocols from versions 1.5.3 and 1.7

Ha protocols from versions 1.5.3 and 1.7 are no longer supported for
 rolling upgrades. Hence they are no longer necessary to be present
 in the codebase.
Introduces usage of ByteCounterMonitor in XaLogicalLog operations

LogExtractor now updates a ByteCounterMonitor with bytes read while
 extracting transaction entries from a log
XaLogicalLog updates a ByterCounterMonitor when deserializing
 prepared transactions from disk for sending over the network
XaLogicalLog now updates a ByteCounterMonitor when deserializing
 a transaction stream over the network
Introduces monitoring in network HA operations

BlockLogBuffer now updates a ByterCounterMonitor with the bytes it
 writes to the underlying buffer. This way all operations that
 serialize transactions to the network can be monitored.
Master and Client instances now make use of that BlockLogBuffer
 for streaming results and transactions.
Introduces a RequestMonitor which logs HA requests. It supports
 request context via a hashmap which can be set to contain various
 information about the request logged.
Client and Server now update a RequestMonitor with requests sent
 and received, respectively.
Moves ByteCounterMonitor to o.n.k.monitoring package

ByteCounterMonitor is generic enough so it does not have to be
 in o.n.k.i.t.xaframework anymore
Fixes issue with Monitor tags

TaggedMonitorListenerInvocationHandler was not getting the tags that
 it was created with. The result was that listeners added for specific tags
 would get called for all invocations of the observed interface regardless.
 This commit fixes the issue and adds a test for it.
Introduces and uses TransactionMonitor

Introduces TransactionMonitor to facilitate measurement of transaction
 events, current commits and commit entry injections.
Adds support for that in XaResourceManager, tagged by datasource name.
Introduces a sample counting implementation meant for testing,
 EideticTransactionMonitor.
Introduces tests for basic functionality in kernel and lucene-index
Adds testing for transaction event monitoring in HA clusters

Adds two tests that make use of TransactionMonitor to monitor transaction
 propagation in clusters. One test counts events by committing and pushing
 from both slaves and the master, while the other counts transactions
 pulled from slaves.
Merge pull request #1880 from digitalstain/phase2timeoutRetryFix

Fixes an issue with phase2Timeout on proposer state
Merge pull request #1865 from digitalstain/monitoring

Introduction of monitoring in the kernel and HA network operations
Merge branch '1.9-maint'

Conflicts:
	community/kernel/src/main/java/org/neo4j/kernel/InternalAbstractGraphDatabase.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/transaction/TxLog.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/transaction/TxManager.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/transaction/xaframework/InterceptingXaLogicalLog.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/transaction/xaframework/XaFactory.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/transaction/xaframework/XaLogicalLog.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/transaction/xaframework/XaResourceManager.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/index/TestIndexCommand.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/nioneo/store/TestNeoStore.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/nioneo/store/TestXa.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/transaction/TestXaFramework.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/transaction/TxManagerTest.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/transaction/xaframework/TestStandaloneLogExtractor.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/transaction/xaframework/TestUpgradeOneDotFourToFiveIT.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/transaction/xaframework/XaLogicalLogTest.java
	community/lucene-index/src/test/java/org/neo4j/index/impl/lucene/TestLuceneDataSource.java
	community/lucene-index/src/test/java/org/neo4j/index/impl/lucene/TestRecovery.java
	enterprise/backup/src/main/java/org/neo4j/backup/BackupServer.java
	enterprise/backup/src/main/java/org/neo4j/backup/BackupService.java
	enterprise/backup/src/main/java/org/neo4j/backup/RebuildFromLogs.java
	enterprise/cluster/src/main/java/org/neo4j/cluster/protocol/atomicbroadcast/multipaxos/MultiPaxosContext.java
	enterprise/com/src/main/java/org/neo4j/com/Client.java
	enterprise/com/src/main/java/org/neo4j/com/Server.java
	enterprise/com/src/test/java/org/neo4j/com/MadeUpClient.java
	enterprise/com/src/test/java/org/neo4j/com/MadeUpServer.java
	enterprise/com/src/test/java/org/neo4j/com/ServerTest.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/BranchDetectingTxVerifier.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/HaRequestType196.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/HighlyAvailableGraphDatabase.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/MasterClient196.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/cluster/zoo/ZooClient.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/MasterClient17.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/com/slave/MasterClient18.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/com/slave/MasterClientResolver.java
	enterprise/ha/src/main/java/org/neo4j/kernel/ha/com/slave/SlaveServer.java
	enterprise/ha/src/test/java/org/neo4j/ha/TransactionConstraintsIT.java
	enterprise/ha/src/test/java/org/neo4j/test/ha/ClusterManager.java
Merge remote-tracking branch 'upstream/master' into 1.9-merge