Rewrite script save/load function anyway since previous ones didn't work as expected.
Authored by: utunnels 2011-09-02
Parent: [r3412]
Child: [r3414]