Code to disable q.t and q.q.

I'm not sure if you want to include this, as this seems most useful if someone wanted to deploy it as part of a longer-running production deployment rather than just for use during a specific debugging session.  But I decided to play around with it and added the ability to disable the logging, so I thought I'd pass it back to you to decide.

Sean