Modified JSON API to return multiple requested IDs at once as an array. 
Also modified current API calls to take into account the fact that a
singleton array is now returned for their use case.