Update Users API to handle role objects or ids

Closes #3357
- API method User#edit now handles User objects that have either
  an array of Role ids or objects.
- Fixed error handler notification on upload modal controller.
Merge pull request #3360 from jaswilli/issue-3357

Update Users API to handle role objects or ids