modified to work with neo4j 2.0.0M4
Most changes are due to new mandatory transactions