Use generic sleep functionality for better windows compatability.
Add reset feature.  Tested on linux with RAMPS board.