Inverness have confirmed defender Danny Devine has signed a new two-year contract at Caledonian Stadium.