Added rethrowException flag to runScript, added runDocumentTypeScript methods
Now use GroovyScriptService to run the script
Added DocumentTypeScript, with support for onCreate, onUpdate,afterUpdate and afterDelete
Added document/prepare action to API