Crystal Palace captain Mile Jedinak has agreed a new three-and-a-half year deal with the Premier League side.