Restoring session
Checking saved credentials and API availability.