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.