Implement Admin::DirectoriesController#index.

- Refactor shared functionality into Admin::ResourcesController.

Current spec status: 326 examples, 0 failures in 3.15 seconds.