Andy Halliday has signed a contract extension at Middlesbrough which will keep him at the club until June 2015.