resty: made ngx.print, ngx.say, and print return meaninful values; also mocked ngx.flush() and ngx.eof().