Added a reset functionality over serial

This addition makes it possible to reset the controller and do a
firmware upgrade over USB.