Moved debug output handling from runner.py to output.py.  Fixed the setting of the debug level from -d so it actually works.
Added a test for debug()