groups/permissions: added listPermissions, added admin.groups.php, checkPermission can now use array of permissions instead of loading them from database