Added MPEG2 support (via dgIndexCommand) and Avisynth templating support (createAvsFromTemplate).