CRAFTERCMS-214

Added improved logging. Eliminate double locking on write content action.