doc: replace JSON with YAML
zar_tmpl: reorder keys in template

The name of a group identifies the group, so it makes sense to me to
put it as the first key.
zar_tmpl: add comments
zar.yaml: extract template from zpmlib.zpm