Added routes and templates for post management.