Added logic to extract URLBase from device xml
If URLBase is present it will be used as prefix to the controlURL.
If not the same host address and ip will be used as the device xml get request