Group widgets by resource name in the "Add widget" dropdown

This gives the user a way to tell apart two resource views with the same name.

We're using the resource name as a key here, so if there're two resources with
the same name, they'll appear on the same group.