Capture debug messages and miscellaneous fixes. 

This is a grab bag of fixes to improve test suite reliability.  Also, debug messages are now send to the journal and the checking of journal messages has been redone slightly.