Refactor RestApi for relogin, change main activity, populate the friends list adapter from server, etc.