DOC split scripting.rst into tutorial and reference