api: add consistent permissions_summary data for both user and user_groups that expose...
api: add consistent permissions_summary data for both user and user_groups that expose
the summary of permissions for each object.
- deprecates the 'permissions' data key for get_user
- adds a consistent way of fetching permissions summary for both objects.