Added json-metaquery program and a zone argument to metdata queries