[#646] Add type. Fix username param

* Add type to all the function parameters.
* Refer to function with `func`.
* Fix _group_or_org_member_delete to use username instead of user_id
  so it's consistent with the other functions.