WL-3231 Don’t display previous courses.

There were 2 problems:

- Firstly when using the search interface it didn’t correctly pass through to the backend what range of components to display so they would always all be displayed.

- Secondly the limiting of components in the server side code didn’t seem to be working at all. It was using a criteria to attempt to limit what parts of a collection were loaded but this didn’t seem to be working at all (didn’t dig too deeply). I can understand why this isn’t supported as if you then attempted to persist them hibernate would trim your collection. I’ve changed the code so that now when loading a group with a limited set of components it does this in 2 calls, and then builds an object with the 2 results.
Correct typo in JS.