Add support for modifying users through the API.

Untested code, I too live dangerously…