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

setServer() has been deprecated and it is removed from retrfit v1.5
Merge pull request #65 from karthikraj-duraisamy/master

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