The current `GlimpseMiddleware` class, does the same check to see whether or not the request being handled is a request for a resource or not, and in case it is a resource, then the `BeginRequest` and `EndRequest` methods are not called. This is okay, but then we need to do the same thing inside the `HttpModule`, because even though we have an event based model here and the resources are handled by the `HttpHandler`, the `BeginRequest` will still be executed, which is not the case for Owin. Therefore I added the same check here, but I think we should move that kind of check inside the `BeginRequest` and return it as part of the return value so that in case of the `GlimpseMiddleware` it can start executing the resource.