Trace loglevel

This adds a new loglevel, TRACE. This gives us a level lower than DEBUG for putting really noisy stuff. I've put move of `wait_for`'s logging in there, as well as the AJAX wait detail reporting.

Working with the logging module is always a little painful. :(