Using AsyncResp everywhere

Get the core using AsyncResp everywhere, and not have each individual handler
creating its own object.We can call app.handle() without fear of the response
getting ended after the first tree is done populating.
Don't use res.end() anymore.

Tested:
1. Validator passed.

Signed-off-by: zhanghaicheng <zhanghch05@inspur.com>
Change-Id: I867367ce4a0caf8c4b3f4e07e06c11feed0782e8
diff --git a/redfish-core/lib/telemetry_service.hpp b/redfish-core/lib/telemetry_service.hpp
index 61ca891..9ec0737 100644
--- a/redfish-core/lib/telemetry_service.hpp
+++ b/redfish-core/lib/telemetry_service.hpp
@@ -23,21 +23,20 @@
     }
 
   private:
-    void doGet(crow::Response& res, const crow::Request&,
-               const std::vector<std::string>&) override
+    void doGet(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
+               const crow::Request&, const std::vector<std::string>&) override
     {
-        res.jsonValue["@odata.type"] =
+        asyncResp->res.jsonValue["@odata.type"] =
             "#TelemetryService.v1_2_1.TelemetryService";
-        res.jsonValue["@odata.id"] = "/redfish/v1/TelemetryService";
-        res.jsonValue["Id"] = "TelemetryService";
-        res.jsonValue["Name"] = "Telemetry Service";
+        asyncResp->res.jsonValue["@odata.id"] = "/redfish/v1/TelemetryService";
+        asyncResp->res.jsonValue["Id"] = "TelemetryService";
+        asyncResp->res.jsonValue["Name"] = "Telemetry Service";
 
-        res.jsonValue["MetricReportDefinitions"]["@odata.id"] =
+        asyncResp->res.jsonValue["MetricReportDefinitions"]["@odata.id"] =
             "/redfish/v1/TelemetryService/MetricReportDefinitions";
-        res.jsonValue["MetricReports"]["@odata.id"] =
+        asyncResp->res.jsonValue["MetricReports"]["@odata.id"] =
             "/redfish/v1/TelemetryService/MetricReports";
 
-        auto asyncResp = std::make_shared<AsyncResp>(res);
         crow::connections::systemBus->async_method_call(
             [asyncResp](
                 const boost::system::error_code ec,