Update index route to display post list.
Add logout route handler.