Added save and restore HW state

Settings panel controls to save the current state and to restore state
to factory defaults.