APIv2 User Resource.

* fix bug 1011243
* fix bug  965828
* fix bug  926673
Update v2 api codebase to working state.
FOO

* fix bug 1011243
* fix bug  965828
* fix bug  926673
frontend
Update v2 api codebase to working state.
Fixes.