Fixed setup for recommendations API

Also switched arguments loop to use lodash.forEach since it is faster
and safer
I'd tend to agree. We'll be moving the older APIs to match up with the new one in time, but not quite yet. Until then, though, we still need to support both.