fixing rest api such that nodes or relationships are indexed properly, w...

...here before dummy nodes were indexed in their place

changed rest api for create_or_fail semantics: if you request indexing a node under key foo and value bar, and that node or another node is already indexed under foo/ bar, then an error is returned