api: add /users and some other changes