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. Except when the node in the index is the same one you tried to index, in which case we return you a 201