User registration, login, and logout API with token authentication.

[Fixes #66299540]