rewrote BatchOperations.replaceLocationPlaceholders for performance

test-run: 10k nodes, 20k rels, 10M upload file, 44M result file
with existing implementation: 08:24
New implementation: 0:14
Merge pull request #403 from jexp/batch-rest-location-placeholders

#402 rewrote BatchOperations.replaceLocationPlaceholders for performance