Moved getAllNodes/getAllRelationships into kernel API