Making DeviceItem use Objecive-C 2.0 properties. Also replaced code that accessed DeviceItem's ivars directly.
Style changes.