Refactored routes into blueprints, cleaned up includes, cleaned up URLs in templates.