smart-publish: updateChildren(): now publishCursor's index is a global counter which increments (it's also stored in object returned by the function); removal of outdated edges is performed after adding,
tests/basic-joins.js: order of elements was updated in some tests