Rest api for users

I had problem with conflicts and need to merge with commit c9fc51e.
Sadly this merge alters almost every backend file.

Can we remove this commit from the pull request?