Two nights of armed attacks on Palestinian villages in the West Bank has left homes destroyed and dozens injured.