Look at maps that already use triggers, (e.g. random maps: Jebel Barkal, Danubius) and code your triggers like those maps do, can't help more with that you yourself will have to learn how to do them.
The JS console is not really useful for triggers and the console only can access the GUI javascirpt context (not the simulation or the map generation stage) (GUI= graphic user interface)
Units -> the more units -> the more lag
Area effects (auras) -> the more and the bigger -> the more lag
Graphics -> the more high quality -> the more lag
AI -> The more state and code each unit has to process -> the more lag (avoid long loops in unitAI.js that)
Egypt 3v3 lag -> probably because the map size is giant size, has many units, many unique buildings, etc
You mean auto-queue? If you mean auto-building you would have to create a new component in the simulation folder to define it and write the functionality you want, then add that component to the units/buildings you want in their simulation/templates and last, if needed, write the GUI code so the player can interact this new feature.
To know more you will have to ask around the IRC chat https://webchat.quakenet.org/?channels=0ad