added a posts controller, this includes the view and routes for displaying posts