Integrated the hardware manager with the module manager. Old tests working, no new tests yet