Events framework

Added the ability to have users run commands, reboot the system or quit
sgminer based on system events. These events can be defined and placed
throughout the sgminer source. So far the events are: "gpu_sick",
"gpu_dead" and "idle". I will document further shortly. Config example
available here: http://pastebin.com/2rRv3EzH