Availability 增加 ok_count 和 device_count 缓存

- 移除 Report#created_at index
- 增加 Report#[:device_id, :result] index
Availability#default_scope {order(:date)}
adding routes /devices/:device_id/:date
Product show all bad devices
/products/:product_id/bad_devices