Fixes UpgradableDatabaseTestIT

Makes the test use the correct path for a required resource.
Also makes it use correct temporary directories.
Update the pretty graph cookbook to use labels

This fixes the output graph that was incorrect because of an isolation bug
where you could read a deleted node in an open transaction.
Merge pull request #1895 from cleishm/multi-keyword

Accept space separated keywords in keyword parser rule
Make kernel dependencies provided for the Cypher 2.0 compiler, so it can run against kernel 2.1 in the future
Accept space separated keywords in keyword parser rule
Merge pull request #1906 from cleishm/keyword_space

Accept space separated keywords in keyword parser rule
Merge branch 'neo4j/1.9-maint' into 2.0-maint
Merge branch 'neo4j/2.0-maint' into master
Fixed lifecycle handling during slave switch. No longer causes deadlock with concurrent shutdown of database.
Added predicate to wait for all instances to be joined when using arbiters
Fixed lifecycle handling during slave switch. No longer causes deadlock with concurrent shutdown of database.
Added predicate to wait for all instances to be joined when using arbiters

Conflicts:
	community/kernel/src/main/java/org/neo4j/kernel/lifecycle/LifeSupport.java
	enterprise/cluster/src/main/java/org/neo4j/cluster/MultiPaxosServerFactory.java
	enterprise/ha/src/test/java/org/neo4j/ha/correctness/ClusterInstance.java
	enterprise/ha/src/test/java/org/neo4j/test/ha/ClusterManager.java
Fixed lifecycle handling during slave switch. No longer causes deadlock with concurrent shutdown of database.
Added predicate to wait for all instances to be joined when using arbiters

Conflicts:
	community/kernel/src/main/java/org/neo4j/kernel/lifecycle/LifeSupport.java
	enterprise/cluster/src/main/java/org/neo4j/cluster/MultiPaxosServerFactory.java
	enterprise/ha/src/test/java/org/neo4j/ha/correctness/ClusterInstance.java
	enterprise/ha/src/test/java/org/neo4j/test/ha/ClusterManager.java
Fixed lifecycle handling during slave switch. No longer causes deadlock with concurrent shutdown of database.
Added predicate to wait for all instances to be joined when using arbiters
Merge pull request #1904 from jakub-/pretty-graph-cookbook-labels

Update the pretty graph cookbook to use labels
Merge pull request #1905 from systay/kernel-provided

Make kernel dependencies provided for the Cypher 2.0 compiler
Removed use of deprecated Traversal.description method.
Splits relationship chains by type and direction

Changes how relationships for a node are stored on disk. Node and
relationship records are virtually untouched, and a new type of records
(and store) sits in between a node and its relationships acting as a
node-centric index for type and direction of the relationships.

Previously the logical layout has been that a node has one long chain of
relationships connected to it, where relationships of all types and
directions were mixed in the same chain. Loading relationships of a
particular type and direction could not be made efficiently since the
whole chain had to be loaded. Simplified like this:

   NODE->REL1->REL2->REL3...

This commit introduces RelationshipGroup(Store/Record) which sits in
between node and its relationships like so:

   NODE->GROUP_A->GROUP_B->GROUP_C->...
        /  \        |        |
      OUT  IN      OUT      IN
      /    |        |        |
    REL1  REL2    REL3     REL7
     |     |                 |
     v     v                 v
    REL4  REL6             REL8
     |     |                 |
     v     v                 v
    ...   ...               ...

which removes to need to load irrelevant relationships when knowing their
type and or direction. Furthermore, backpointers on all relationship
records that are first in any chain are used to store the number of
relationships in that chain, allowing for O(1) counting of relationships,
even based on type and direction.

Nodes with few relationships will bypass the relationship group index
and instead switch on a certain number of relationships. This to remove the
overhead of the relationship group records for a small number of
relationships. The dense node threshold is configurable and defaults to 50.

This commit also bumps the store format to 0.A.2 and requires a store
migration, which will happen automatically if configuration settings to
allow it are in place.

The concsistency checker lacks some checks around relationship group
records, so at this point it's not fully covering those areas.
An instance will now create a cluster only after contacting all instances

Before it was so that an instance would create a cluster if, during discovery,
 it would contact at least half of the instances configured as initial_hosts
 and it was the one with the numerically smallest instance id among them.
 This lead to problems where instances would go ahead and create different
 clusters because of startup order. In particular, an instance could
 respond to two other instances with numerically lower instance ids
 but those two would not manage to contact each other. That would
 lead them to each forming a cluster on its own and the remaining
 instance joining one of them, in random.
 This commit changes so that an instance no longer waits for
 quorum number of instances but all of them, as configured in
 initial_hosts. This ensures that the instance forming the cluster
 will have seen all that is possible to see and all other instances
 will join that cluster.
Adds description string to cluster test DSL verification method

ClusterMockTest.verifyConfiguration() can be called anywhere during
 a cluster test and is also called automatically at certain
 operations. This can lead to confusion in case of failures, as
 it's not obvious which call of the ones made during a test failed.
 Adding a description helps tell them apart.
Removed use of deprecated Traversal.description method in examples.
Moves getRelationships into the kernel API.

 o Still delegates to old implementation, but this is now done through the correct call paths.
 o Locking has been moved to the Kernel locking layer.
 o Obviates the need for the lock that could be passed to getNodeForProxy, which has been removed.
 o Deleted relationships are now filtered out in StateHandlingStatementOperations.
 o Use primitive iterator on the low levels for rels
 o Swaps lower level implementation to use ints instead of RelationshipType.

 Remaining:
 o getDegree still uses the old code paths, and should be swapped over in a follow-up commit.

Conflicts:
	community/kernel/src/main/java/org/neo4j/helpers/collection/IteratorUtil.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/api/ConstraintEnforcingEntityOperations.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/api/DefaultLegacyKernelOperations.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/api/StateHandlingStatementOperations.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/api/operations/EntityReadOperations.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/api/store/StoreReadLayer.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/core/NodeImpl.java
	community/kernel/src/main/java/org/neo4j/kernel/impl/core/RelationshipIterator.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/api/integrationtest/RelationshipIT.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/core/RelationshipIteratorIssuesTest.java
	community/kernel/src/test/java/org/neo4j/kernel/impl/core/TestRelationshipGrabSize.java

Kernel TX prepare and commit now get called outside synchronized blocks.