Replaced DeviceRepository and SensorRepository with ClientRepository. The only way to get devices and sensors is through a client instance. Client is treated as an aggregate root.