Celtic midfielder Tom Rogic has ended speculation over his future by signing a new three-year contract.