Microsoft, rebooted, emerges as a tech leader