switch metadata export to ES
improve memory footprint
Merge pull request #990 from dimagi/meta

switch metadata export to ES