Added first revision of agsstopallstarted.py and lib/agsextras.py