Update create datarule

Include format option 'string
Include format for specifying the lua file contents as a string in the "script' key.