Refactored web logging code using CapturedHttpContext since we cannot fetch values off the real HttpContext if we are not on the same thread.
Swapped out INSERT in favor of MERGE to avoid PK issues again with LogURL and LogURLQuery.
Added test MVC4 site with exception logging.