CMS-2364: Fix editing of shortcuts in the admin console - Rewrote "buildShortcutTypeXML" to use Hibernate, instead of an SQL based on column numbers.
CMS-2360 Slow queries or OutOfMemory when content published to a lot of sections

Added check for number of sections published to before doing earger-fetching joining the 4 tables to prevent too many rows in result