Switch over to asynchronous logging, use a new heap manager that has header magic and guard pages for debugging, when analyzing URLs only beginning logging of APIs once some relevant network activity was performed (tested with IE/Firefox/Chrome)

Document a few issues, like that it's not safe to use snprintf if the heap lock is held (so i've converted the uses in the logging code to a custom function)