fix bugs in the implementation that are found be the salt-graph tests
fix remove(idx,key,value) and use this more efficient function when changing the edge source or target

since the old edge source/target node ID is known, it can be used to efficiently delete the entry from the index instead of doing a complete search