Improve/add debuging to make it easier to debug
Fix jwz algorithm.  In 1b, when continue was invoked, prev = container was not executed, frequently causing 1c to be executed on a granddparent.  This manifested as messages being threaded to one of their grandparent
Add another missing chunk of jwz algorithm, to tolerate incorrect references in other messages.  Includes unit test