Implemented the index and show actions of the posts controller, with associated views.