Rewrote the Scripting system

Need someone to test it. Should work with VisualBasic files again as well.