unified tamplates; straightened out ValueSet concept; added a mechanism to refine queries to retrieve contexts.