Refactor posts controller

* Remove categories instance variable and edit views accordingly
* Put :show into array