add a isLoggedIn method to the usersession and deprecate the isLoggedIn method on the api
use two tests instead of one
fix tests
Merge pull request #12887 from owncloud/logged-in

Add a isLoggedIn method to the usersession and deprecate the isLoggedIn ...