Initial working controller for resource_index, a lot more to do.