corrected bug in mock-beanstalk#reserve

It now correctly moves the job from the ready queue to the reserved set.
The test for work-queue/delete was fixed as well.
Improved the mock beanstalk API

Functions for changing and inspecting the state the mock beanstalk were
added.  The work queue tests were adapted to use the new functions.