Use coffeescript classes for DeviceService