I think a lot of whats in the bible is written with two points of view, for example there were two tribes of Hebrews, the north and the east (think that is correct) they both hated one another, though they both worshiped Yahweh. So having similar stories but different results at times, the bible does contradict itself.
I think mankind made religion to protect itself, the Gods of the bible are numerous, and always challenging the Hebrew God Yahweh or vice versa, look at Pharoah and the plagues ect.
God is a creator not a fighter, he fought for the Isrealites to show he was with them because that is what they wanted. This ongoing battle between good and evil will soon end. The biggest problem the Isrealites had was trying to understand why bad things happen to good people and why good things happened to bad people. They continually put their own standards up and failed to understand or listen to what God said and why these things occured. They continually failed. God allowed the Hebrews all their religion and failings, even to have a king sit on a thrown to represent him. That failed.
We as humans need to attain the oneness Jesus talked about, the simplicity of the spiritual oneness.I simply think that God allowed all this to happen in the hope that our free will and spiritual mind will be used to return to him, through the teachings of Jesus. Love and obedience to the law of Love thats it.
Mankind have to learn and grow, when religion is no longer (hopefully that will be soon) and people start to try and live the spiritual life Jesus preached the Godly law of love for him and one another, only then will we know the mind of God.