Refactored device service

- Added method for getting device ID of a single device by name
- Added method for getting the accepted status of a device by name