preferences: added quiet-while-charging

Adds a setting 'Quiet While Charging' that disables ringing
and vibrating while the phone is plugged in.  This is
intended for people who plug their phone in at night and
don't want to be woken up.