RestAPI v3: revised UserResource
 - added unit tests
 - adapted classes and fixed methods