First-half goals from Chris Wood and Dwight McNeil gave Burnley a surprise 2-0 win over West Ham at Turf Moor.