move elasticsearch fns into corehq.elastic