Added requireLogin, requirePermission, requirePermissions, getUser
Added @:keep to PermissionErrors so it stays on client