Motherwell midfielder Keith Lasley has signed a new two-year contract with the Scottish Premiership club.