Allow printing preloader protocol debugging information.
Fix potential use of freed memory in the Watchdog by using shared_ptrs.
Have the Watchdog set some default options.
Minor code cleanups.