App init optimization
Optimized subapps loading and closing to preserve resources better; layouts moved to subapps; added global app container