adding web service to merge trees, matrices and metadata (JSON) into a nexml document