Refactored the enable/disable code
Movded the to own http post handler /miner/<name>/onoff