Respond with related items as an array, with group

Instead of returning a hash of groups for related items, continue to
return a single array of all related items, each with a 'group' value
corresponding to the related item group it is in (subsection, section or
other).

This maintains backwards compatibility with clients which already
consume the content API.