Partick Thistle midfielder Stuart Bannigan has signed a new two-year extension, the club has announced.