* Extract out the job-locking code.
* Enable epic logging if the DEBUG env var is present.
Epic test tidyup and extract the lock acquisition out of the reserve method
adds a test to make sure the find locks for update
Tidy up the reserve method
Tests the block passed to acquire_locked_job
Fixup RSpec exceptions in after_commit callbacks.
Nearly all green