Microsoft surpassed expectations on revenue and profit but is slimming down across ranks, organizations and geographies.| CNBC