New user rest APIs

Must clean user IDs.  Use:

    $userids = clean_param_array($userids, PARAM_INT);