GraphGlobal Operations take Transaction State into account

A manual backport of a feature that is in 1.9, but not an easy cherry pick!

The NodeManager now checks for an active transaction context before returning and changed graph items on getAllNodes/getAllRels.

Added testing around NodeManager and refactored the existing tests.

Removed unused code, commented out code etc.