added before_render support for returning entire response instead of just string