Device Manger improved

improved structure, tested OK.  Should work on the UI and integration
iwth the principal as well.
Also a utility for finding he devices to be developed