Hook up cookbook show to the cookbook index/directory

:fork_and_knife: 

The user-facing change here is that the cookbook names in the cookbook index/cookbook directory screens now link to the cookbook show page. We've also squashed an N+1 bug on those screens, and created a scope to handle sorting logic.