last used serverUrl should be stored in localStorage

setServerUrl will get depreciated and if we are sticking to setServerUrl then getServerUrl should be there for consistency.