Re-add router requests logger
Add missing `WriteHeader` in template execution