Submit reboot/stop data to graphite
Some fixes and more tests