RESTful API client-side

added role parameter to user creation