Restructure environment setup scripts to a script per application