Divided the capabilities view into groups
Added capabilities group for files and gravityforms
Added capability group map to link a capability to a specific group
Added delete_themes capability to get_wp_capabilities

Notes:
I tried to find a group in the capability name but the capability names are not consistent enough
I would be great if every capability has a group by default but since that is something that needs to change in the WordPress core I think this solutions is second best