Distributed: auto deploy, changed logging levels
Fixed issue #2010 by supporting pessimistic locks on SQL update
Merge branch 'newlocks' into develop