added JSON,XML templates and code from ddr-cmdln

JSON and XML metadata files that are best handled in this layer
of the stack were being managed by ddr-cmdln.  This change moves
the rest of that code into this layer of the stack, along with
the EAD and METS template files.