A 1950s West London school is to be demolished and replaced with a new state-of-the-art educational facility and flats.