add device-change handler

Register function to respond to ALSA device change (e.g. USB).
Also, add some logging.