LPS-37266 Add a help icon for each permissions header
LPS-37266 Expand resource declaration to support a weight element that will allow specifying the order of the model resources
LPS-37266 Apply proper weights to all model resources

It is worth noting that the weights are only applied for model resources with the same portlet-ref
LPS-37266 Move Control Panel so that it goes first, then Site Administration and My Account is last.
LPS-37266 Collapse all sections by default except for the first one (Control Panel) and its first subsection
LPS-37266 Automatically expand all sections while searching to ensure that the items found are displayed.
LPS-37266 Based on user feedback rename "Portal" as "General Permissions" and put it within the Control Panel section

I had to replicate the HTML for regular items so that the CSS and search js worked properly (without the need for hacks)
LPS-37266 Based on user feedback rename "All" back as "Summary"
LPS-37266 When the secondary header label is empty don't render any markup
LPS-37266 Source formatting: replace 4 spaces with tab
LPS-37266 Rename also the css class
LPS-37266 Adjust margins and sizes according to Juan Hidalgo's design

- The margin for the search box has been set to align with the header. I had to use pixels to match it since the header uses a combination of margin in pixels and line-height
- For the summary I used em for consistency with other items in the menu.
- I also made the search box slightly smaller (span10)
LPS-37266 All ADD_PORTLET_DISPLAY_TEMPLATE permissions should be in its own resource

That way it's possible to show this permission only in the portlets that are meant to be in a page (as opposed to within the Control Panel or Site Administration) since those are the only ones where display templates is relevant. An additional benefit is that they can all be shown when configuring the permission of the "Application Display Templates" portlet itself.

Also shorten the name of the permission to "Add Display Template" since it's always shown in a context where the word Application is not necessary and could lead to confusion.
LPS-37266 Remove unneeded line break
LPS-37266 The column "scope" should only be shown for portlets that are added to a page or those within Site Administration but not for those in the Control Panel. For model resources it should only be shown for those that belong to a site. We figure that out by checking the portlet to which they "belong".

  Two special cases have to be considered: the PORTAL portlet and the Group model resource. The former must not have scope and the second must have it.
LPS-37266 Rename "scope" as "sites" and the value "portal" as "all sites"
LPS-37266 Show by default 50 elements per page in the summary (20 is too little for roles that have many permissions)
LPS-37266 Merge the action column with the "Sites" column
LPS-37266 New help messages reviewed by Rich
LPS-37266 Fix JavaScript error when removing a selected site

This was created when we added the "use" attribute to the script tag since it creates a namespace for everything inside.