Delete the beanstalk queued jobs prior to running the log tests.

This ensures other tests don't queue a bunch jobs we don't care about
prior to the log tests running.

This also includes a couple of semi-related changes:

- The beanstalk connections will reconnect when unexpectedly closed.
- The entire test directory is deleted prior to each test run (ensures
  we always have a fresh start for testing, and makes dealing with
  logs easier).