WIP. Added Daemon stats code for MacOS. Worked mostly, except that the CPU usage part threw an error a few times.