BREAKING: Place array responses into an object with a 'result' key
Not to be merged until a corresponding MR for the frontend is ready.
Refactors any endpoints that returned an array response to instead return an object with the array existing under the key 'result'.