Code folding feature for Automations, etc

Automations can get quite large, as such the GUI would benefit from shrinking or hiding the details of each section by “code folding” them.