Merge pull request #873 from lassewesth/master

Fixing Windows build
support for chained certificates
support for chained certificates

CA.sh from openssl.org (BSD style license) is used to setup a CA to be used for TestKeyStoreFactory.java
Inline nested if statements.
Get rid of outdated multiple instances docs, point to ha tutorial instead.
Fix for the "pull storm" phenomenon in HA
Merge remote-tracking branch 'origin/master'
Changed to heap based buffers for Client, thus avoiding the direct memory leak. Heap buffers will be more aggressively GCed.
Added missing license to fix the build
Fixed bugs
Ensures cleanup of transactions that failed to commit is under a lock

Adds a synchronized block around commit and rollback in case of failure
 in TxManager. This ensures that a transaction has the chance to clean up
 its state atomically, preventing a class of errors encountered in HA settings.
Revert "Ensures cleanup of transactions that failed to commit is under a lock"

This reverts commit 31eab0c44d7aebd8826b673af7453421d0371089.
Ensures cleanup of transactions that failed to commit is under a lock

Adds a synchronized block around commit and rollback in case of failure
 in TxManager. This ensures that a transaction has the chance to clean up
 its state atomically, preventing a class of errors encountered in HA settings.

Previous commit 31eab0c44d7aebd8826b673af7453421d0371089 that tried the same
 thing was completely wrong, this is a rewrite
Enabling Streaming support for Paged Traversals

From https://github.com/neo4j/neo4j/issues/862 it seems that streaming on paged traversals doesn't work. In fact the code never was written to enable it. What looks like a bug from the outside is actually simply missing implementation.

There's now a ListEntityRepresentation to represent the JSON list of nodes/rels that gets returned and this gets run through the standard output formatters.
Adding back the BSD licence
Specifies Java 6 when finding JAVA_HOME on OSX
Allow | to be used as separator in foreach
Allow | to be used as separator in extract+reduce
Merge pull request #886 from chrisleishman/forward_compat

Forward compatibility changes (for Cypher 2.0)
Strengthening assertions about streaming paged traversals

Added a check for Transfer-Encoding: chunked on the response so that we're sure it's definitely streamed at the transfer protocol level. We also check for application/json; stream-true