Saner approach setting log messages

The login, changepassword, and token-based APIs should be good to go.