LPS-31279

This is a roll back of 84c2825 + all the fixes done to it. Since it was so long ago, I copied and pasted the old method and manually applied all the source formatting done to it on the way.

---

Some background on this ticket.. Eduardo added this piece for Marc Lundgren who is working on a new feature so the My Sites Dropdown could be paginated/searched.

There are a few issues with this:

1. Currently, anything after page one will return the 1 result since we are sublisting twice on the same range (this can be easily fixed).

2. The values start and end apply to BOTH organization and groups search.. that means if there are the same amount of organizations and groups, groups will be never be returned. For example, for each page on a 10 delta (start 0 end 10) we grab 10 organizations and 10 groups and sublist it to grab the first 10 of the combined list.. always leaving the groups out.

3. All of this is assuming that we don't includeControlPanel and user public/private layouts. Because if we do, they will be at the top of every result set.

4. Even if we fix all of the above (probably by adding more parameters), the results returned are off in certain scenarios because of the removal logic in there. We can't easily predict what was already returned in the previous call so there may be duplicate or missing results.

Marc said that his story won't likely get in 6.2 so I think rolling this back is the best option rather than locking us into a non-straightfoward API. We will work on a different solution for 7.0.