This is more work on bug #7906.  It is now importing and exporting devices correctly.  I just need to make it so that it can be fully used as a device.