add a isLoggedIn method to the usersession and deprecate the isLoggedIn method on the api
use two tests instead of one
fix tests
add isAdmin and isInGroup methods for the group manager
Merge pull request #12892 from owncloud/is-addmin

Add isAdmin and isInGroup methods for the group manager