Fixed crash of monitor.lua when browser rapidly refreshes.

This also implements the W3's specifications for HTTP/1.1 persistent connections. 

A note: messages should have a self-defined length that isn't defined by the closure of the connection, and this should be the length of the chunk. However I wasn't sure how to bring chunk into onHeadersComplete, so that may need fixing (async/http.lua, line 96)