unification of persistence and transaction handling for jbpm and human task

some fixes for persistence and tx sync