CRAFTERCMS-214
Modified deployment engine to use more fine grained transaction to avoid deadlocks. Added possible missing transaction.
Merge remote-tracking branch 'dejan/CRAFTERCMS-214'