Better error messages for failures during wait.
Added easy database rebuilding in trait.
Added integration test concept and reworked harness stuff.