Configure when the middleware should profile

I want to be able to show profile information all of the time, so this gives me a way to do that. It also provides a hook if some developers only want to show that information to admin, or only on certain pages (or based on anything else that can be retrieved from the request).