Fixes
script: watch all memory allocations

And some other miscellaneous changes.

Now it should be ready for the real life.
script: don't get killed because of users