control: Add fan objects to their zones

Load the fan configurations and add each fan to its configured zone.

Change-Id: Ib798db9f272484c60b6eadd58e6545bd704b9573
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/json/zone.cpp b/control/json/zone.cpp
index 33ab048..11b7814 100644
--- a/control/json/zone.cpp
+++ b/control/json/zone.cpp
@@ -16,6 +16,7 @@
 #include "zone.hpp"
 
 #include "../zone.hpp"
+#include "fan.hpp"
 #include "functor.hpp"
 #include "handlers.hpp"
 #include "types.hpp"
@@ -66,6 +67,11 @@
     }
 }
 
+void Zone::addFan(std::unique_ptr<Fan> fan)
+{
+    _fans.emplace_back(std::move(fan));
+}
+
 void Zone::setFullSpeed(const json& jsonObj)
 {
     if (!jsonObj.contains("full_speed"))