Added an API to set the keepalive property of the request

Setting the keepalive from Lua is useful when implementing all kinds of protocols above ngx_lua.
Some protocols may require that the connection would be closed or stay open.

The is a part of pull request #286