added apis pipeline, with documentation. make the avgWeight API work correctly with direct queries and UNION with queries linked through coin type URIs