The get_bundled_aggregations code is fairly high-level and uses a lot of store methods, we move it into the handler as that seems like a better fit.
Adds a handler layer between the REST and datastore layers for relations.