malloc and free test.
Ops, both must be free.
Rewritten wrapper to not dup strings.
Rework of httputil.
Restructured httputil to become more effecient.
Free correctly in C wrapper.
Merge branch 'master' into httputil-struct
Use HTTPParser in async.lua.
Added tests for revised httputil namespace.
Removed debug.traceback.
Updated documentation to suit new classes.
Updated documentation to suit new turbo.httputil classes.
Compare against nil not 0.
Move ffi.new to upvalues.
Added comment about keeping references to pointers.
Allocate with malloc since ffi.new leads to unsupported C type conversion and trace abort.
Merge pull request #90 from kernelsauce/httputil-struct

Refactoring of HTTPHeaders class into two classes:

HTTPParser - for parsing HTTP headers
HTTPHeaders - for generating HTTP headers

The Ryan Dahl C wrapper has been changed to not dupe strings but rather return offsets and sizes to the parsed const char*. This produces a much lower count of small malloc and subsequent free's increasing performance.

Also contains some movement of ffi.new's to upvalues.

On my Lenovo T430 this leads to roughly 3-4 k extra requests per sec running helloworld.lua...
HTTPParser no longer returns -1.
Convert gai strerror to Lua string.
Corrected comment.