Inverness Caley defender David Raven has agreed a two-year contract extension with the Scottish Premier League high-flyers.