Bournemouth midfielder Eunan O'Kane has signed a new three-and-a-half-year contract with the Cherries.