Ensure thread created by lua_newthread() is unreferenced
Create helper function get_request_from_lua_state()
Implement lwan.set_response() from Lua side