Device Service, Device Repository and a few tests.