forgot to freeaddrinfo() in connect
rough documentation code/site rip from another project of mine as a starting point. WILL NOT COMPILE.
feature add: brutal hack (loading mongoose_ex.C instead of .H to get at the connection and context struct definitions) to allow event callback to provide high-performance IP-based Virtual Hosting - you only need to switch contexts on a per-connection basis.
clean way of providing IP-based Virtual Hosting: the mg_get_option() APIs (with mg_get_conn_option() as a new sibling there) will always invoke the option_get user callback (if available) for all ctx and conn-based config parameters, so user code can always decide to deliver alternate values.
renamed mg_get_client_socket() to the more appropriately named mg_get_socket(); added the new socket APIs: mg_sockaddr_to_string(), mg_get_socket_port() and mg_get_socket_ip_address() to help user code (e.g. in event callback) to work with IP info contained in the request_info connection struct.
allow a per-connection specific keep_alive_timeout to be set.
initial edits of the wiki formatted pages to get a working documentation website at http://127.0.0.2:8081/
big bang checkin
remove debug printf which was still lingering in the code.
verify_document_root() should only happen AFTER the options have all been gathered and processed from (defaults, config file, command line) --> first chance that's good enough is doing this check in MG_INIT0 event.

Also note that the options should be gathered so that '-r' and '-document_root' share an options[] entry; API added to convert any argument into its corresponding 'long named form': mg_get_option_long_name()
profiling the server app shows that the main wait loop is eating ore than necessary; after all, check 10 times per second is good enough to exhibit 'instantaneous' behaviour when it comes to exiting the application - because that's the only thing which will break that loop.
couple of robustness fixes and removed two chunks of code which were duplicated elsewhere to precisely the same effect.
Win32: always provide the various _WIN32_WINNT #defines (originally available in sdkddkver.h but then you'd have to have the SDK installed)
removed dead code.  TODO: we'll need to redress the / vs. \ issue anyway: plan is to only allow / (and thus convert to it) when entering the file access functions, such as mg_fopen().  It's similar to the idea that boost path classes seemed to have: always use the '/'-based unixy notation, ad only provide the '\'-based specials on explicit demand, e.g. when going to invoke open() or stat().
don't make chat server sample throw an assertion when started in the wrong directory.
jquery errors in Safari 5/Win -> updated to unminified jquery 1.7.2 to help debugging
SSL: making sure graceful close does at least the minimal required SSL_shutdown ( http://www.openssl.org/docs/ssl/SSL_set_shutdown.html#NOTES + http://www.openssl.org/docs/ssl/SSL_shutdown.html --> we don't call SSL_shutdown() a second time as that would make us block & wait for the client to complete the close, which would be a server vulnerability)
fixed crash in chat example's JavaScript due to typeof(data)=='undefined' under some circumstances.
MSVC2010 chat project: added the example site files to the project
fixed the fix for issue #229: both Content-Type _and_ Content-Length headers should only be sent when there's a body allowed. (Not so for a HTTP 304 response, for example.)