Update DeviceLocator.java

Avoid Concurrent Modification Exception when locating multiple devices.
Fixed encoded base64 credentials -> trim extra \r\n