Revert "Revert "SSP-1372 Eager-load Challenge associations needed by default TO""

This reverts commit 6b66e866da321bc7f2a4c1ee42d758f885e90728.
SSP-1372 Fix duplicate Challenge query result regression

Eager-fetches associations were resulting in duplicate Challenge
query results so specified a Criteria.DISTINCT_ROOT_ENTITY
ResultTransformer on the relevant queries. This change was undone
by the pagination subsystem which wipes out the registered
ResultTransformer. So also added code to try to restore the previous
transformer when possible.
SSP-1375 Fix regression which caused page size to be ignored
Revert "Revert "Revert "SSP-1372 Eager-load Challenge associations needed by default TO"""

This reverts commit bde7fe0873027ca3e785aac472ceb233c942e41c.

This optimization just will not work without major changes to the
pagination mechanism.

http://floledermann.blogspot.com/2007/10/solving-hibernate-criterias-distinct.html
Revert "SSP-1372 Fix duplicate Challenge query result regression"

This reverts commit f154d4b261d01de1339684711e59109b81e43b52.

This optimization just will not work without major changes to the
pagination mechanism.

http://floledermann.blogspot.com/2007/10/solving-hibernate-criterias-distinct.html