CRAFTERCMS-214
Modified deployment engine to use more fine grained transaction to avoid deadlocks. Added possible missing transaction.