I'm going to take back what I said about Yosemite. After reading a lot of these posts, and after hours of identifying and removing what I suspected might have been software/apps causing the problem, it seems there are multiple, yet different, issues that may look like the same. From my side, I was experiencing reboots, perhaps 2-3 times a day, almost entirely happening when I was not at my iMac. And it happened once when I was using my MacBook Pro. These were random, but had started happening right after I had installed two apps, (which have since have removed).
It's been a couple of days now, and I have not had any reboots on my iMac. One of the suspicious apps was "Location Helper" which little is known about and there is no documentation, but it is an App Store app, so I hesitate to blame this one now. The other app was GEDitCOM, a genealogy app, which I also removed. I'm not 100% sure this was the problem.
Bottom line is I am not blaming either one of these as I cannot prove they were causing my reboot. However, if there is anyone else out there that installed either app, and is having similar issues, I would really like to hear from you, then we may be able to sleep at night knowing this fixed a reboot problem.