Microsoft is preparing for a sweeping internal transformation that could fundamentally reshape how its software is built and maintained.