Refactors the Resource.resource_relations feature:

* Uses ActiveRecord::Reflections to handle associated models.
* Columns of related model tables included in search queries.
* Sortable table headers uses resource relations columns.