fixing count/remaining for GatherBlock.
Merge branch 'aql2' of ssh://github.com/triAGENS/ArangoDB into aql2
first attempt at GatherBlock::nextValue
small optimizations
GatherBlock non-simple case implemented.
fixed invalid document access
less locking
Merge branch 'aql2' of https://github.com/triAGENS/ArangoDB into devel
fixed compile warnings
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into pregel