Let me preface this by saying that I'm completely not a Leafs fans coming in peace. Rather I'm a bitter and sad panda of a Wings fan.
But, as a complete outsider, what the Leafs have done (which the Wings did first) and what the Habs should take after is realise that f*** it, we're one of the richest teams in the league and there is no cap restraint on management/coaching/scouting.
The Leafs went out and bought the best available managemnt and have apparently increased their scouting department. And of course paid the best coach available a shit ton of money. They lucked out on Matthews but Shanahan personally talked to his friends and pros in Sweden about Nylander and determined that all the 'diva' rumors were BS and was extremely happy he fell to the Leafs at #8. They've uncovered Zaitsev as a FA, ditto two Swedes that seem to fit on the bottom pair with the possibility of moving up. None of the players costing them anything except for money of which they have plenty. They swung the fence on Liljegren although the jury is still out on him and are not afraid of picks that are projects (again what the Wings used to do, dammit all).
The Leafs also weren't afraid of dealing their best players for pennies of the dollar and 'losing' the trade. As Babcock said, there will be pain but for the Habs to turn it around you'll need to start at the top.