Optimize script engine, cut memory usage down.
Authored by: utunnels 2008-01-10
Parent: [r1312]
Child: [r1314]