AI-Led App Modernization for Scalable and Testable Systems