Fixed operational glitches in the new device enable/disable system, added extra logging output

This is now tested to work for enabling/disabling devices.