Made client into library
getlantern/lantern#1716 Getting ip address for registrations on server-side