Additions to scripting engine regarding cinematic. Miscellaneous tweaks and other fixes.