Update to user role management

Update tree-view directive
Updata add/edit modal
Merge remote-tracking branch 'nikola/sprint8-update2'
Use role._id instead of name for users.
Added user-permissions service and sdUserPermissions directive.
Changed how permissions are registered (not via activity provider anymore).
Changed user settings page.
Changed userPermissions service and sdUserPermissions (not finished).
Removed debug code.
Added user-roles permissions.
Cleaned up.
Completed userPermissions service and sdUserPermissions directive.