move elasticsearch fns into corehq.elastic
Merge pull request #1114 from dimagi/es

move elasticsearch fns into corehq.elastic