Replaced deprecated 'setServer()' with 'setEndpoint()'

setServer() has been deprecated and it is removed from retrfit v1.5. So i have changed it to setEndpoint(). According to retrofit setEndpoint() is the replacement for setServer().