CMS-4615 Implement content.modify script method. Implemented some tests.