Steven Davis put in a captain's performance by scoring twice as Northern Ireland secured qualification to Euro 2016 with a 3-1 win over Greece at Windsor Park.