Re-work ActiveDevice into ActiveDeviceInstance

We can use the name of the hardware key to match against instead of
querying IDs.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>