Merge pull request #972 from boggle/2.0-primlongs

Make EntityReadOperations return PrimitiveLongIterator
Lazily instantiate DiffSets and HashMaps in TxState.

o Avoid instantiating DiffSets when checking containment in TxState
o Renaming methods in TxState to be more in line with Kernel naming scheme
o Instantiate *statesMaps in TxState lazily
Instantiate TxState lazily

o Replace TxState.Factory with TxState.Holder
o Make TxState clients check if state.hasTxStateWithChanges() to avoid object instantiation
Renames methods in TxState for clarity

o Introduce UpdateTriState to replace usage of Boolean
Merge pull request #978 from iansrobinson/2.0-streamline-tx-state

2.0 streamline tx state
Make NeoStoreTransaction.getLabelsForNode return PrimitiveLongIterator
Delete deprecated code from old consistency checker and add consistency checking of label token and label token name stores

o Rename all old usages of relationship label to relationship type
o Rename all old usages of *name to *token
Make label dynamic store also store node id of owning node for orphan consistency checking
Orphan checking for node dynamic labels
Fixing code style and removing unused fields
Tests for issues in the node->label store consistency checker.

Since the name of the checker class indicates that it would report orphan
records, (failing) tests are added for such scenarios.
Since the checker reads full chains it needs to be able to gracefully handle
records inconsistent in such a way that they form a cyclic chain, a (failing)
test is added for this.
It was discovered that exceptions in the checker were not always propagated,
the code has been refactored to ensure that they are. This revealed further
failures.
Fixes consistency checker tests

o Ensure that isStartRecord is written to the log
o Load schema rules from consistency checker by forcing the records and ensuring that they are heavy
o @Ignore tests for orphan checking of non-start records