Raw HTTP response writer with basic templating