Removed jbpm 3 dep, quite a few cleanups and small test fixes and additions
Added Pessimistic locking test