Liverpool captain Jordan Henderson has ended speculation over his future by signing a new four-year contract.