(UserManagement) Refactor rest.user.js REST endpoints