The Woman and the Dragon
Revelation 12
Revelation 12:1 (TS2009)
And a great sign was seen in the heaven: a woman clad with the sun, with the moon under her feet, and on her head a crown of twelve stars.

Whereas most visions of Daniel take place on earth, this vision brings us to heaven. I believe this woman symbolizes all God's faithful people, including the chosen ones for the government of heaven headed by the Son of God. The sun symbolizes the shield of God (Psalms 84:11) or the throne of God's Son (Psalms 89:36). See also Galatians 4:22-31. The sun is the physical light of the world. The Son of God is the spiritual light (John 8:12, John 12:35). The moon symbolizes everlastingness (Psalms 89:36-37). Here the moon is placed under her feet so perhaps this points to this woman representing God's people throughout history. The crown signifies rulership. The number twelve points to the twelve tribes of Israel. Stars symbolize messengers of God (Revelation 1:20). These are perhaps the same 12 messengers which are found at the gates of the wall around the New Jerusalem coming down from heaven (Revelation 21:12). This also possibly parallels the so-called 144,000, or 12,000 of each tribe, who will rule together with the Son of God in His Kingdom of Heaven (Revelation 7:4-8, Revelation 14:1).

There is a strong parallel with Joseph's second dream in Genesis 37. Joseph, being the father of one of the 12 tribes of Israel, saved God's people from slavery during the captivity in Egypt while being second in command under Pharaoh.

Revelation 12:2 (TS2009)
And being pregnant, she cried out in labour and in pain to give birth.

In the Old Testament God's people yearned for the Coming of the Messiah. The Messiah fulfilled the Old Testament messianic prophecies and foretold of birth pains and His Second Coming (Matthew 24). After His First Coming in the flesh the expectation was for His Second Coming in the spirit.
Interestingly, in the garden of Eden Eve was punished by God for disobeying God's command. God increased her pain in bringing forth children (Genesis 3:16).

Revelation 12:3 (TS2009)
And another sign was seen in the heaven: and see, a great, fiery red dragon having seven heads and ten horns, and seven crowns on his heads.

The dragon represents Satan as is explained later on in this chapter. Satan is called dragon and serpent (Revelation 20:2). Satan is the ruler of this world (John 12:31, 2 Corinthians 4:4). In the Scriptures the number seven is identified with something being finished or complete. The number ten is identified with completeness and perfection. The dragon symbolizes Satan's beast empires throughout history which dominated God's people. The seven heads with seven crowns symbolize seven kingdoms or empires. See also Babylon the Great.

Revelation 12:4 (TS2009)
And his tail draws a third of the stars of the heaven and throws them to the earth. And the dragon stood before the woman who was about to give birth, to devour her child as soon as it was born.

Satan deceived a third of God's messengers who also rebel with Satan against God Luke 11:15). They are the demons who rule under Satan. Satan tried to hinder God's plan by killing the Messiah as soon as He came to earth. Herod and the Jewish authorities, under the influence of Satan, wanted to kill the newborn Messiah (Matthew 2). Satan also wants to prevent the Son of God from further executing God's plan at His Second Coming. Satan will assemble an army to fight the Son of God and His army on the Great Day of YHWH the Almighty (Revelation 16:14) when God will make all things right. The woman "was about to give birth". See also Matthew 24 where the Messiah talks about the beginning of birth pains.
There is a strong parallel with the story in Genesis 3 were Eve is deceived by the serpent which represents Satan. Genesis starts with the physical mother of all people, when all the trouble began. Revelation ends with the spiritual mother symbolizing God's people, shortly before the trouble ends.
The chosen ones taken up into heaven
Revelation 12:5 (TS2009)
And she bore a male child who was to shepherd all nations with a rod of iron. And her child was caught away to Elohim and to His throne.

History since the Messiah shows we live in a more and more Godless world ruled by Satan. God will intervene in the time of the end to make all things right. Before that end comes the government of God's 144,000 chosen people must be completed. The Messiah fulfilled the Old Testament Messianic prophecies. The death of the Son of God as a sinless man gained Him His authority from God. Three days after His death He was taken up into heaven by God. So obviously the male child spoken of here does not refer to the Son of God. I think the male child symbolizes the 144,000 chosen ones who come from God's people. These 144,000 form the government led by the Son of God. Therefore they will be caught away to Elohim and to His throne. The rod of iron is used in reference to the Messiah Psalms 2:9) and His chosen 144,000 who will rule together with Him (Revelation 2:27) in His Kingdom of Heaven.

Revelation 12:6 (TS2009)
And the woman fled into the wilderness, where she has a place prepared by Elohim, to be nourished there one thousand two hundred and sixty days.

In Scriptural prophecy the meaning of the wilderness has to do with the condition of God's people after they turn their backs on God and start intermingling with foreign nations and their ungodly traditions (Isaiah 64:10). The wilderness is a place of trial for Godly people (Mark 1:12, 1 Corinthians 10:5). God's people were warned by the Messiah to flee from Jerusalem to the mountains when the signs He foretold would take place. See Matthew 24. Those who heeded His warning fled and escaped horrible deaths by the Roman army at the Siege of Jerusalem in 70 AD. Zion and Jerusalem are called God's holy mountains (Psalms 2:6, Daniel 9:16). Babylon is called a destroying mountain (Jeremiah 51:25). 1,260 prophetic days equals 3.5 prophetic years (360 days/year) which is a prophetic time period mentioned several times in Daniel and Revelation related to the time of the end. The nourishment likely talks about God's people receiving help from God (John 6:47-51). Halleluyah!
Satan thrown out of heaven
Revelation 12:7-9 (TS2009)
And there came to be fighting in the heaven: Mika’el and his messengers fought against the dragon. And the dragon and his messengers fought, but they were not strong enough, nor was a place found for them in the heaven any longer. And the great dragon was thrown out, that serpent of old, called the Devil and Satan, who leads all the world astray. He was thrown to the earth, and his messengers were thrown out with him.

This part is a flashback in the vision which details the phrase his tail draws a third of the stars of the heaven and throws them to the earth mentioned earlier in verse 4. Like with people on earth there is a hierarchy of power in heaven. Michael is a chief messenger (Daniel 10:13) who will lead God's army of messengers against Satan and his army of fallen messengers or demons. Satan and his demons are then banned from heaven.

Revelation 12:10 (TS2009)
And I heard a loud voice saying in the heaven, “Now have come the deliverance and the power and the reign of our Elohim and the authority of His Messiah, for the accuser of our brothers, who accused them before our Elohim day and night, has been thrown down.

Shortly before His death on earth the Son of God said Now is the judgment of this world, now the ruler of this world shall be cast out. And I, if I am lifted up from the earth, shall draw all men unto Myself (John 12:31-32). From Daniel's vision of the Four Beasts we know that God will bring His Judgment in the time of the end. After God's Judgment the Son of God obtains the Kingdom. For example Paul says So do not judge any at all before the time, until the Master comes, who shall bring to light what is hidden in darkness and reveal the thoughts of the hearts. And then each one’s praise shall come from Elohim. (1 Corinthians 4:5). Perhaps the Son of God says these Words because He is certain that God's Plan will work out and the future Kingdom of God is sealed by His death.

Revelation 12:11-12 (TS2009)
And they overcame him because of the Blood of the Lamb, and because of the Word of their witness, and they did not love their lives to the death.

God's chosen ones overcame Satan by the death of the Messiah and by the witness of His disciples preserved in the New Testament. They did not love their earthly lives more than God and were born again in the Messiah.

Revelation 12:12 (TS2009)
Because of this rejoice, O heavens, and you who dwell in them! Woe to the earth and the sea, because the devil has come down to you, having great wrath, knowing that he has little time.

God's chosen ones will be taken up into heaven to form God's government headed by the Son of God. This confirms that Satan is thrown from Heaven shortly before or during the time of the end.

Revelation 12:13 (TS2009)
And when the dragon saw that he had been thrown to the earth, he persecuted the woman who gave birth to the male child.

From the moment that Satan is cast out of heaven he knows that his time is short and he will not delay to persecute the remainder of God's people on earth (Matthew 24:9, 1 Peter 5:8).
God's people protected
Revelation 12:14 (TS2009)
And the woman was given two wings of a great eagle, to fly into the wilderness to her place, where she is nourished for a time and times and half a time, from the presence of the serpent.

The wings of the great eagle symbolize God's power to protect His people (Exodus 19:4, Isaiah 40:31). The phrase time and times and half a time talks about a certain time period, also mentioned in Daniel, in which God's people are protected from Satan. I believe Paul has some interesting things to say about the food from God which He gives to His people (1 Timothy 4). It's about the food that leads to everlasting life (John 6:27). The Messiah said For My flesh is truly food, and My blood is truly drink (John 6:55) and in the Gospels He talks about His Body being the temple (John 2:18-21). See also 1 Thessalonians 2.

Revelation 12:15 (TS2009)
And out of his mouth the serpent spewed water like a river after the woman, to cause her to be swept away by the river.

Water symbolizes the unstable nations on earth under Satan's power (Psalms 144:7, Isaiah 17:12-13, Psalms 65:7, Isaiah 57:20, James 1:6). The Jewish authorities influenced the people and the Romans to kill the Messiah on earth. In the period between the crucifixion of the Messiah and the destruction of Jerusalem Satan used the Jewish authorities for persecuting the remainder of God's faithful people. He uses his spiritual influence to try to hinder God's plan and achieve his own goals, which involves the destruction of mankind. Interestingly, in Revelation 17 we see that Babylon the Great is seated on many waters and that these waters symbolize peoples, and crowds, and nations, and tongues (Revelation 17:15). Satan will use ungodly nations to fight with God's people.

Revelation 12:16 (TS2009)
And the earth helped the woman, and the earth opened its mouth and swallowed up the river which the dragon had spewed out of his mouth.

The earth is often used to symbolize the place where God's people dwell (Habakkuk 2:14, Isaiah 66:1, Psalms 103:11). It symbolizes stability as opposed to water or sea which symbolizes instability. God's people will receive help.

Revelation 12:17 (TS2009)
And the dragon was enraged with the woman, and he went to fight with the remnant of her seed, those guarding the commands of Elohim and possessing the witness of YHWSO Messiah.

Satan attacks the remainder of God's people on earth. During the life of the Messiah on earth those guarding the commands of God and having witnessed Him are of course His disciples. But in the time of the end the Son of God will appear again as foretold by Himself (Matthew 24:27).