CE-2440: Prepare for NetBox integration
The code has been refactored to be compatible with the backend's NetBox integration changes. We query hosts from two different sources in NetBox, so their numerical identifiers are unique only within their own entity. Therefore, they have received a generated String ID that includes the numerical ID and information about from which endpoint they can be queried (Is Virtual Machine or not).
Closes CE-2440