Redesigned event queue system and tweaks.

mapGeneration.runScript now accepts any number of parameters past script
and map.