[WIP] moved code handling operating system usernames into os/users.c

This is not done yet. In `misc1.c` there is some code in the function `expand_env_esc()` that uses `getpwnam()`, which i will move to `os/users.c` as well.