refactored sharedItemsService -> SharesService; implemented functions to set the content of a code item according to the ace change events