freed query results. death to array_push()
refactored internals of getLearnerGroupsForOffering() and getLearnersForOFfering() to reduce the number of required roundtrips to the db.
updated method docblocks.
split off code for retrieving learner groups by offering into its own method. adjusted calling code accordingly.
improved method docblocks.