/api/users REST API

Subj implemented and some bugfixes.