Prints only start of invalid lock result buffer in case of failure

introduces HexPrinter utility for this neat printing.
Throws plain DeadlockDetectedException during commit

instead of TransactionFailureException. A recent change in timing when
records where changed in a transaction (from the point of the change, to
the point where the transaction committed) had some deadlock exceptions
converted into TransactionFailureException instead. This commit changes
that back so that the transaction surface looks the same in that sense.
Fixes a test blemish
Add rewriters for normalizing WITH and RETURN
Normalize WITH and RETURN clauses before check
Use pre-semantic-check rewriters in integration tests
Add ScopeTreeTest
Move files to the correct location

Also adds a maven check so 2.2 does not build if 2.1 files are left around
Move dependency analysis to Expression
Merge pull request #3051 from systay/clean-2.1-files

Move files to the correct location
Merge pull request #3050 from tinwelint/2.2-throw-plain-dde-during-commit

Throws plain DeadlockDetectedException during commit
Updated javadoc after transaction pooling was disabled
Moved use case specific error message to correct place
Merge pull request #3037 from jakub-/pre-check-normalization

Pre check normalization
Make CommandApplierFacade more generic.
Get exact count of number of nodes in the graph.
Get exact count of number of nodes with given label.
Get exact count of number of relationships in the graph.
Get exact count of number of relationships with given type.
Remove unused statistics service.