Create a beanstalk connection per thread (#47)

Change to fix issue #47.