Add explicit check to check how dialog was closed
Replace using namespace statements with qualified names
Remove unnecessary script parsers

Avisynth/Default/Dgindex script parsers were ultimately just
wrappers for different scripts that added no functionality.

Making ScriptParser's setTemplate member function public
provides the same functionality with less complexity and maintenance